Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2016-02-21 13:15:46 +0000
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
6bd49bcd4b7a75bc527c2a7cd84cd345a62448d9
6bd49bcd
1 parent
61577cf6
Fixed page listing excerpts not showing due to encoding issues
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
app/Page.php
app/Page.php
View file @
6bd49bc
...
...
@@ -45,7 +45,8 @@ class Page extends Entity
public
function
getExcerpt
(
$length
=
100
)
{
return
strlen
(
$this
->
text
)
>
$length
?
substr
(
$this
->
text
,
0
,
$length
-
3
)
.
'...'
:
$this
->
text
;
$text
=
strlen
(
$this
->
text
)
>
$length
?
substr
(
$this
->
text
,
0
,
$length
-
3
)
.
'...'
:
$this
->
text
;
return
mb_convert_encoding
(
$text
,
'UTF-8'
);
}
}
...
...
Please
register
or
sign in
to post a comment