Problem with Mediawiki 1.15.1

If you are having problems with GuMax, post here.
Post Reply
User avatar
yeahlang
Rank 0
Rank 0
Posts: 2
Joined: September 27th, 2009, 5:59 am

Problem with Mediawiki 1.15.1

Post by yeahlang »

Deprecated: Function split() is deprecated in D:\Program Files\xampp\htdocs\pkm\skins\GuMax.php on line 386

please help me, Paul.
Thanks!
Attachments
2009-9-27 18-01-21.jpg
2009-9-27 18-01-21.jpg (99.33 KiB) Viewed 3383 times
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Problem with Mediawiki 1.15.1

Post by Paul »

Thanks for reporting this issue...

Since PHP 5.3 the function split() is deprecated (see http://ca3.php.net/manual/en/function.split.php). A alternative function is preg_split (see http://ca2.php.net/manual/en/function.preg-split.php).

So just search

Code: Select all

$pageClasses = split(" ", $this->data['pageclass']);
and replace with

Code: Select all

$pageClasses = preg_split("/[\s]+/", $this->data['pageclass']);
I will update the existing version and release it soon... :D
User avatar
yeahlang
Rank 0
Rank 0
Posts: 2
Joined: September 27th, 2009, 5:59 am

Re: Problem with Mediawiki 1.15.1

Post by yeahlang »

Thank you so much, It works.
Post Reply