From 17e58d7ff8367246f4cd47f3239b390a0c4199eb Mon Sep 17 00:00:00 2001 From: Ger Hobbelt Date: Wed, 27 Mar 2013 12:02:52 +0100 Subject: [PATCH] quick fix for PHP 5.4.x STRICT error: Strict standards: Non-static method Meta::title() should not be called statically in C:\~sites\tweede.net\kisscms\app\views\main\head.php on line 5 --- app/helpers/meta.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/helpers/meta.php b/app/helpers/meta.php index 344100f..cf47985 100644 --- a/app/helpers/meta.php +++ b/app/helpers/meta.php @@ -2,7 +2,7 @@ class Meta { - static function display($type){ + public static function display($type){ /* $meta = new Meta(); switch( $type ){ @@ -14,15 +14,15 @@ static function display($type){ */ } - function title(){ + public static function title(){ echo ( array_key_exists('meta', $GLOBALS) && $GLOBALS['meta']['title'] ) ? $GLOBALS['meta']['title'] : $GLOBALS['config']['main']['site_name']; } - function description(){ + public static function description(){ echo ( array_key_exists('meta', $GLOBALS) && $GLOBALS['meta']['description'] ) ? $GLOBALS['meta']['description'] : $GLOBALS['config']['main']['site_description']; } - function url($query=false){ + public static function url($query=false){ if( array_key_exists('meta', $GLOBALS) && $GLOBALS['meta']['url'] ) { echo $GLOBALS['meta']['url']; } else {