diff --git a/plugin/blog/Entity/Post.php b/plugin/blog/Entity/Post.php index 120579206c..d94460753e 100644 --- a/plugin/blog/Entity/Post.php +++ b/plugin/blog/Entity/Post.php @@ -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; /** @@ -184,7 +184,7 @@ public function getShortContent($url, $text) { $readMoreText = sprintf('... %s ', $url, $text); - return String::resumeHtml($this->content, 400, $readMoreText); + return StringUtils::resumeHtml($this->content, 400, $readMoreText); } /** diff --git a/plugin/blog/Utils/String.php b/plugin/blog/Utils/StringUtils.php similarity index 99% rename from plugin/blog/Utils/String.php rename to plugin/blog/Utils/StringUtils.php index 49a6ee09cf..499c56f8b0 100644 --- a/plugin/blog/Utils/String.php +++ b/plugin/blog/Utils/StringUtils.php @@ -2,7 +2,7 @@ namespace Icap\BlogBundle\Utils; -class String +class StringUtils { /** * Came from http://j-reaux.developpez.com/tutoriel/php/fonctions-troncature-texte/.