Index: trunk/extensions/DataTransfer/specials/DT_ViewXML.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | return $categories; |
47 | 47 | } |
48 | 48 | |
49 | | - function getNamespacesList() { |
| 49 | + static function getNamespacesList() { |
50 | 50 | $dbr = wfGetDB( DB_SLAVE ); |
51 | 51 | $page = $dbr->tableName( 'page' ); |
52 | 52 | $res = $dbr->query( "SELECT DISTINCT page_namespace FROM $page" ); |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | return $namespaces; |
59 | 59 | } |
60 | 60 | |
61 | | - function getGroupings() { |
| 61 | + static function getGroupings() { |
62 | 62 | global $dtgContLang, $smwgIP; |
63 | 63 | |
64 | 64 | if ( ! isset( $smwgIP ) ) { |