diff options
author | Urban Müller | 2014-03-06 14:15:44 +0100 |
---|---|---|
committer | Urban Müller | 2014-03-06 14:19:33 +0100 |
commit | e3ebc3eb5fa1fff573100a5ca2c7c025aa6e14ab (patch) | |
tree | e9b04b50bccdb89ef23065093514024a38d700ae /it.class | |
parent | 311aba6f64ed4b943e391584697b1cdb4d1fb8bf (diff) | |
download | itools-e3ebc3eb5fa1fff573100a5ca2c7c025aa6e14ab.tar.gz itools-e3ebc3eb5fa1fff573100a5ca2c7c025aa6e14ab.tar.bz2 itools-e3ebc3eb5fa1fff573100a5ca2c7c025aa6e14ab.zip |
keep supporting title only mode
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -127,6 +127,8 @@ static function timerlog($label = '') */ static function error($p = array()) { + $p = is_array($p) ? $p : array('title' => $p); + if ($_SERVER['REMOTE_ADDR']) $url = ($_SERVER['HTTPS'] ? "https://" : "http://") . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; else |