diff options
author | Ben Coburn <btcoburn@silicodon.net> | 2006-07-10 11:18:20 +0200 |
---|---|---|
committer | Ben Coburn <btcoburn@silicodon.net> | 2006-07-10 11:18:20 +0200 |
commit | 746855cf48e51565e70ed332fac9025865c52d8d (patch) | |
tree | 7ebdfd61c48f2fd815a21cb4d3d84a51410453b2 /inc | |
parent | bad905f13d90b80add3f028b9f6c77e071e0d746 (diff) | |
download | rpg-746855cf48e51565e70ed332fac9025865c52d8d.tar.gz rpg-746855cf48e51565e70ed332fac9025865c52d8d.tar.bz2 |
cleanup undefined constant notices
Undefined constants replaced with strings, see
http://www.php.net/manual/en/language.types.array.php#language.types.array.foo-bar
darcs-hash:20060710091820-05dcb-cfccff2bdd633b929470c60d8eee096f50ab4c18.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/actions.php | 2 | ||||
-rw-r--r-- | inc/html.php | 4 | ||||
-rw-r--r-- | inc/template.php | 4 | ||||
-rw-r--r-- | inc/toolbar.php | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/inc/actions.php b/inc/actions.php index 51fb0a84a..cbbbeead6 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -113,7 +113,7 @@ function act_dispatch(){ //call template FIXME: all needed vars available? $headers[] = 'Content-Type: text/html; charset=utf-8'; - trigger_event('ACTION_HEADERS_SEND',$headers,act_sendheaders); + trigger_event('ACTION_HEADERS_SEND',$headers,'act_sendheaders'); include(template('main.php')); // output for the commands is now handled in inc/templates.php diff --git a/inc/html.php b/inc/html.php index 7f5050b8d..8906491ef 100644 --- a/inc/html.php +++ b/inc/html.php @@ -371,7 +371,7 @@ function html_search(){ if(count($data)){ sort($data); print '<div class="search_quickresult">'; - print '<h3>'.$lang[quickhits].':</h3>'; + print '<h3>'.$lang['quickhits'].':</h3>'; print '<ul class="search_quickhits">'; foreach($data as $id){ print '<li> '; @@ -1201,7 +1201,7 @@ function html_admin(){ ); } - usort($menu, p_sort_modes); + usort($menu, 'p_sort_modes'); // output the menu ptln('<ul>'); diff --git a/inc/template.php b/inc/template.php index f9e69d340..f14472181 100644 --- a/inc/template.php +++ b/inc/template.php @@ -42,11 +42,11 @@ function tpl_content() { ob_start(); - trigger_event('TPL_ACT_RENDER',$ACT,tpl_content_core); + trigger_event('TPL_ACT_RENDER',$ACT,'tpl_content_core'); $html_output = ob_get_clean(); - trigger_event('TPL_CONTENT_DISPLAY',$html_output,ptln); + trigger_event('TPL_CONTENT_DISPLAY',$html_output,'ptln'); } function tpl_content_core(){ diff --git a/inc/toolbar.php b/inc/toolbar.php index 072b6f420..3cd58e5c6 100644 --- a/inc/toolbar.php +++ b/inc/toolbar.php @@ -186,8 +186,8 @@ function toolbar_signature(){ $sig = $conf['signature']; $sig = strftime($sig); $sig = str_replace('@USER@',$_SERVER['REMOTE_USER'],$sig); - $sig = str_replace('@NAME@',$_SESSION[$conf[title]]['auth']['info']['name'],$sig); - $sig = str_replace('@MAIL@',$_SESSION[$conf[title]]['auth']['info']['mail'],$sig); + $sig = str_replace('@NAME@',$_SESSION[$conf['title']]['auth']['info']['name'],$sig); + $sig = str_replace('@MAIL@',$_SESSION[$conf['title']]['auth']['info']['mail'],$sig); $sig = str_replace('@DATE@',date($conf['dformat']),$sig); $sig = str_replace('\\\\n','\\n',addslashes($sig)); return $sig; |