From c111b2d432d89547d5566ce79101acb4e6f37190 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 1 Feb 2019 22:20:32 +0100 Subject: [PATCH] Fix root namespace --- Views/ViewAbstract.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Views/ViewAbstract.php b/Views/ViewAbstract.php index dcf02b2da..384bbc72a 100644 --- a/Views/ViewAbstract.php +++ b/Views/ViewAbstract.php @@ -99,7 +99,7 @@ abstract class ViewAbstract implements \Serializable */ public function printHtml($text) : string { - return htmlspecialchars((string) $text); + return \htmlspecialchars((string) $text); } /** @@ -113,7 +113,7 @@ abstract class ViewAbstract implements \Serializable */ public static function html($text) : string { - return htmlspecialchars((string) $text); + return \htmlspecialchars((string) $text); } /** @@ -253,7 +253,7 @@ abstract class ViewAbstract implements \Serializable \ob_start(); /** @noinspection PhpIncludeInspection */ $includeData = include $path; - $ob = (string) ob_get_clean(); + $ob = (string) \ob_get_clean(); if (\is_array($includeData)) { return (string) \json_encode($includeData);