diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-02-17 23:20:40 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-02-17 23:20:40 +0100 |
commit | 98c868589ee0757f176239cf289cbd007bb74852 (patch) | |
tree | eb48a172b0f1a423b93ffff35f8adf8d579383c1 /inc/template.php | |
parent | 1c73890c5027011d808d38c583561abc309e8086 (diff) | |
download | rpg-98c868589ee0757f176239cf289cbd007bb74852.tar.gz rpg-98c868589ee0757f176239cf289cbd007bb74852.tar.bz2 |
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
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 20 |
1 files changed, 10 insertions, 10 deletions
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 '<form action="'.wl().'" accept-charset="utf-8" class="search" id="dw__search"><div class="no">'; print '<input type="hidden" name="do" value="search" />'; print '<input type="text" '; @@ -705,7 +705,7 @@ function tpl_mediafilelist(){ ptln('('.$w.'×'.$h.' '.filesize_h($item['size']).')',6); ptln($del.'<br />',6); ptln('<div class="imagemeta">',6); - + //build thumbnail print '<a href="javascript:mediaSelect(\''.$item['id'].'\')">'; @@ -726,7 +726,7 @@ function tpl_mediafilelist(){ print '<img src="'.$src.'" '.$att.' />'; print '</a>'; - + //read EXIF/IPTC data $t = $item['meta']->getField('IPTC.Headline'); if($t) print '<strong>'.$t.'</strong><br />'; @@ -767,7 +767,7 @@ function tpl_showreferences(&$data){ global $lang; $hidden=0; //count of hits without read permission - + if(count($data)){ usort($data,'sort_search_fulltext'); foreach($data as $row){ |