Silence new php 5.5 warnings and notices

This commit is contained in:
Latif Khalifa
2014-05-17 08:32:34 +02:00
parent c7784d033a
commit 56b007d195
2 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
class Layout
{
function since($since)
static function since($since)
{
$since = time() - date("Z") - $since;
$chunks = array(
@@ -29,7 +29,7 @@ class Layout
return $print;
}
function header()
static function header()
{ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -74,7 +74,7 @@ class Layout
<?php
}
function footer()
static function footer()
{
{ ?>
</div><!-- container -->

View File

@@ -3,7 +3,7 @@ if (!defined('SITE_ROOT')) {
exit(1);
}
error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT));
ini_set("display_errors", "true");
if (!extension_loaded('kl')) {