diff --git a/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php b/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php index 4ca8efc..dcc0d6a 100644 --- a/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php +++ b/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php @@ -7,22 +7,26 @@ namespace Drupal\dblog\Controller; +use Drupal\Component\Utility\Unicode; use Drupal\Core\Database\Connection; use Drupal\Core\ControllerInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; +/** + * Returns responses for dblog routes. + */ class DbLogController implements ControllerInterface { /** - * Database Service. + * The database service. * * @var \Drupal\Core\Database\Connection */ protected $database; /** - * Module Handler service. + * The module handler service. * * @var \Drupal\Core\Extension\ModuleHandlerInterface */ @@ -154,7 +158,7 @@ public function overview() { } if (isset($dblog->wid)) { // Truncate link_text to 56 chars of message. - $log_text = truncate_utf8(filter_xss($message, array()), 56, TRUE, TRUE); + $log_text = Unicode::truncate(filter_xss($message, array()), 56, TRUE, TRUE); $message = l($log_text, 'admin/reports/event/' . $dblog->wid, array('html' => TRUE)); } }