[pmwiki-users] Same name but different pages if case sensitive
Bernd Schatz
bernd.schatz at gmx.net
Sat Apr 25 07:37:01 CDT 2015
Hi,
Am 21.04.2015 um 22:11 schrieb ABClf:
[...]
> Also, you can use http://www.pmwiki.org/wiki/Cookbook/AlternateNamingScheme
> as well, define a new scheme, thus all links ignore uppercase.
I think that could be the solution,
something like:
$MakePageNamePatterns = array(
"/([\\w])+/e" => "return strtolower('$1')", # all lowercase
"/\\s+/" => '' # remove spaces
);
Unfortunately, now i have a problem with php5
Deprecated: preg_replace(): The /e modifier is deprecated, use
preg_replace_callback instead in /var/www/bswiki/pmwiki.php on line 467
There seems to be deprectaed method in pmwiki.php:467 ==>
function PPRA($array, $x) {
foreach($array as $pat => $rep) {
if(is_callable($rep)) $x = preg_replace_callback($pat,$rep,$x);
else $x = preg_replace($pat,$rep,$x);
}
return $x;
}
How i can i fix it ?
greets
Bernd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20150425/7dca2aec/attachment.bin>
More information about the pmwiki-users
mailing list