deaccenting config

darcs-hash:20050123201406-9977f-68b7ed58d460af96a0a076d973aa4f2568fb28b8.gz
This commit is contained in:
andi 2005-01-23 21:14:06 +01:00
parent b77734d63a
commit 8b709e9deb
2 changed files with 2 additions and 4 deletions

View File

@ -34,8 +34,7 @@ $conf['signature'] = ' --- //[[@MAIL@|@NAME@]] @DATE@//'; //signature see wiki
$conf['maxtoclevel'] = 3; //Up to which level include into AutoTOC (max. 5)
$conf['maxseclevel'] = 3; //Up to which level create editable sections (max. 5)
$conf['camelcase'] = 0; //Use CamelCase for linking? (I don't like it) 0|1
$conf['localnames'] = 0; //Allow non-ASCII chars in pagenames (0|1)
//You need a correct locale for this!
$conf['deaccent'] = 1; //convert accented chars to unaccented ones in pagenames?
/* Antispam Features */

View File

@ -415,8 +415,7 @@ function cleanID($id){
$id = strtr($id,';',':');
if($conf['useslash']) $id = strtr($id,'/',':');
//FIXME use config to ask for deaccenting
$id = utf8_deaccent($id,-1);
if($conf['deaccent']) $id = utf8_deaccent($id,-1);
//remove specials (only ascii specials are removed)
$id = preg_replace('#[ !"§$%&()\[\]{}\\?`\'\#~*+=,<>\|^°@µ¹²³¼½¬]#u','_',$id);