Hi everybody,
I'm working my way through the update-process and have arrived at the moment
where I'm looking at my own wiki-pages again. <Hurray!!!>
Now I'm trying to eliminate the error-messages mediawiki is throwing at me one
by one, but this one has me baffled:
PHP Warning: preg_replace_callback(): Requires argument 2,
'Sanitizer::cleanUrlCallback', to be a valid callback in
/opt/lampp/htdocs/_fhbwiki/includes/Sanitizer.php on line 1477
This has me baffled because I just cleaned up the cleanUrl-function in order to
clear this error-message:
PHP Deprecated: preg_replace(): The /e modifier is deprecated, use
preg_replace_callback instead in
/opt/lampp/htdocs/_fhbwiki/includes/Sanitizer.php on line 1477
and in order to do that I replaced this line of code:
$url = preg_replace( '/[\][<>"\\x00-\\x20\\x7F]/e',
"urlencode('\\0')", $url );
with this line from the master-source-code:
$url = preg_replace_callback( '/[\][<>"\\x00-\\x20\\x7F\|]/',array(
__CLASS__,
'cleanUrlCallback' ), $url );
I'm no PHP-programmer but I thought that the master-source-code would be
proof-read at least and not bringing new error-messages with it... :-(
Now I don't know what to do. Google isn't really helpful either.
Can anybody here point me in the right direction?
Kate