diff options
author | chris <chris@jalakai.co.uk> | 2006-08-25 16:41:12 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-08-25 16:41:12 +0200 |
commit | 0d8ea6141bc1a7136d25b6377e9d1d04f19664a9 (patch) | |
tree | 8645d8abd5d9c5d0f4aff1480ec236e38916863a /inc/pageutils.php | |
parent | 501252a5b9cc519c5b82ee6eadc26f6b2206fbab (diff) | |
download | rpg-0d8ea6141bc1a7136d25b6377e9d1d04f19664a9.tar.gz rpg-0d8ea6141bc1a7136d25b6377e9d1d04f19664a9.tar.bz2 |
update wikiFN with third paramter, $clean
value defaults to true
patch also includes an update to idx_parseIndexLine to make use of the
new parameter - the index file (if built by DokuWiki's methods) will
contain already "clean" IDs.
darcs-hash:20060825144112-9b6ab-55adc71cf55bb58468fb3f0b03b9001ab149a82b.gz
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index 2055cf2cc..c2cd29bf1 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -140,9 +140,9 @@ function noNS($id) { * * @author Andreas Gohr <andi@splitbrain.org> */ -function wikiFN($id,$rev=''){ +function wikiFN($id,$rev='',$clean=true){ global $conf; - $id = cleanID($id); + if ($clean) $id = cleanID($id); $id = str_replace(':','/',$id); if(empty($rev)){ $fn = $conf['datadir'].'/'.utf8_encodeFN($id).'.txt'; |