Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
f81f233a
Commit
f81f233a
authored
Jun 06, 2016
by
Dominik Hebeler
Browse files
Beschreibungstexte auf 250 Zeichen begrenzt
parent
d66b65a9
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Models/Result.php
View file @
f81f233a
...
...
@@ -14,6 +14,12 @@ class Result
$this
->
anzeigeLink
=
trim
(
$anzeigeLink
);
$this
->
descr
=
strip_tags
(
trim
(
$descr
));
$this
->
descr
=
preg_replace
(
"/
\n
+/si"
,
" "
,
$this
->
descr
);
if
(
strlen
(
$this
->
descr
)
>
250
)
{
$this
->
descr
=
wordwrap
(
$this
->
descr
,
250
);
$this
->
descr
=
substr
(
$this
->
descr
,
0
,
strpos
(
$this
->
descr
,
"
\n
"
));
}
$this
->
gefVon
=
trim
(
$gefVon
);
$this
->
proxyLink
=
$this
->
generateProxyLink
(
$this
->
link
);
$this
->
sourceRank
=
$sourceRank
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment