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/pageutils.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/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index 53e5b2aba..2a07b5fe6 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -1,7 +1,7 @@ <?php /** * Utilities for handling pagenames - * + * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Andreas Gohr <andi@splitbrain.org> * @todo Combine similar functions like {wiki,media,meta}FN() @@ -15,7 +15,7 @@ * * For $param='id' $conf['start'] is returned if no id was found. * If the second parameter is true (default) the ID is cleaned. - * + * * @author Andreas Gohr <andi@splitbrain.org> */ function getID($param='id',$clean=true){ @@ -54,7 +54,7 @@ function getID($param='id',$clean=true){ } if($clean) $id = cleanID($id); if(empty($id) && $param=='id') $id = $conf['start']; - + return $id; } @@ -72,7 +72,7 @@ function cleanID($id,$ascii=false){ global $conf; global $lang; static $sepcharpat = null; - + $sepchar = $conf['sepchar']; if($sepcharpat == null) // build string only once to save clock cycles $sepcharpat = '#\\'.$sepchar.'+#'; @@ -88,7 +88,7 @@ function cleanID($id,$ascii=false){ $id = strtr($id,'/',$sepchar); } - if($conf['deaccent'] == 2 || $ascii) $id = utf8_romanize($id); + if($conf['deaccent'] == 2 || $ascii) $id = utf8_romanize($id); if($conf['deaccent'] || $ascii) $id = utf8_deaccent($id,-1); //remove specials |