Skip to content

Commit

Permalink
quick fix for PHP 5.4.x STRICT error: Strict standards: Non-static me…
Browse files Browse the repository at this point in the history
…thod Meta::title() should not be called statically in C:\~sites\tweede.net\kisscms\app\views\main\head.php on line 5
  • Loading branch information
GerHobbelt committed Mar 27, 2013
1 parent 75501c5 commit 17e58d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/helpers/meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class Meta {

static function display($type){
public static function display($type){
/*
$meta = new Meta();
switch( $type ){
Expand All @@ -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 {
Expand Down

0 comments on commit 17e58d7

Please sign in to comment.