replaced split() with explode(), the former is deprecated since PHP 5.3
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 28 Sep 2009 18:36:15 +0000 (18:36 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 28 Sep 2009 18:36:15 +0000 (18:36 +0000)
includes/api/ApiParse.php

index 22f1367..b223dbb 100644 (file)
@@ -178,7 +178,7 @@ class ApiParse extends ApiBase {
                $result = array();
                foreach( $links as $link ) {
                        $entry = array();
-                       $bits = split( ':', $link, 2 );
+                       $bits = explode( ':', $link, 2 );
                        $entry['lang'] = $bits[0];
                        $this->getResult()->setContent( $entry, $bits[1] );
                        $result[] = $entry;