From 98c868589ee0757f176239cf289cbd007bb74852 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 17 Feb 2006 23:20:40 +0100 Subject: file cleanups This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz --- inc/template.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index 3e9cd55ad..63e90118d 100644 --- a/inc/template.php +++ b/inc/template.php @@ -120,12 +120,12 @@ function tpl_content(){ break; case 'profile' : html_updateprofile(); - break; + break; case 'admin': tpl_admin(); break; default: - msg("Failed to handle command: ".hsc($ACT),-1); + msg("Failed to handle command: ".hsc($ACT),-1); } } @@ -252,7 +252,7 @@ function tpl_pagelink($id,$name=NULL){ */ function tpl_getparent($ID){ global $conf; - + if ($ID != $conf['start']) { $idparts = explode(':', $ID); $pn = array_pop($idparts); // get the page name @@ -270,7 +270,7 @@ function tpl_getparent($ID){ } } } - + if (@file_exists(wikiFN($ID))) { return $ID; } @@ -304,7 +304,7 @@ function tpl_button($type){ global $NS; global $INFO; global $conf; - global $auth; + global $auth; switch($type){ case 'edit': @@ -393,7 +393,7 @@ function tpl_actionlink($type,$pre='',$suf=''){ global $ACT; global $conf; global $lang; - global $auth; + global $auth; switch($type){ case 'edit': @@ -490,7 +490,7 @@ function tpl_actionlink($type,$pre='',$suf=''){ function tpl_searchform($ajax=true,$autocomplete=true){ global $lang; global $ACT; - + print '