Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugin/blog/Entity/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Icap\BlogBundle\Utils\String;
use Icap\BlogBundle\Utils\StringUtils;
use Icap\NotificationBundle\Entity\UserPickerContent;

/**
Expand Down Expand Up @@ -184,7 +184,7 @@ public function getShortContent($url, $text)
{
$readMoreText = sprintf('... <a href="%s" class="read_more">%s <span class="fa fa-long-arrow-right"></span></a>', $url, $text);

return String::resumeHtml($this->content, 400, $readMoreText);
return StringUtils::resumeHtml($this->content, 400, $readMoreText);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Icap\BlogBundle\Utils;

class String
class StringUtils
{
/**
* Came from http://j-reaux.developpez.com/tutoriel/php/fonctions-troncature-texte/.
Expand Down