From 8e669ce994fbfeae791657da1dd3a818c196ff76 Mon Sep 17 00:00:00 2001 From: haliphax Date: Wed, 7 Sep 2016 09:54:48 -0500 Subject: [PATCH] use __construct in cssmin library This will avoid a PHP error stating that methods with the same name as their class will not be treated as constructors in future versions of PHP. --- htdocs/application/libraries/Cssmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/application/libraries/Cssmin.php b/htdocs/application/libraries/Cssmin.php index c51216d..57d9489 100644 --- a/htdocs/application/libraries/Cssmin.php +++ b/htdocs/application/libraries/Cssmin.php @@ -61,7 +61,7 @@ class cssmin { - public function cssmin() + public function __construct() { log_message('debug', 'CSSMin library initialized.'); } @@ -506,4 +506,4 @@ class Minify_CommentPreserver { : substr($in, -$endChars); return $ret; } -} \ No newline at end of file +}