X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fexport%2FDumpNamespaceFilter.php;h=f99746e3a08ecab1fd7799d41155a4f44c9a8a2a;hb=825d66bfa44c5dae2b78e2fe4f3b16f16aff4a12;hp=12b9b55eab127c68964a21dfc9bef51f7e3b4960;hpb=4077b57759756ecd0d25427ec9598feb28a28ac1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/export/DumpNamespaceFilter.php b/includes/export/DumpNamespaceFilter.php index 12b9b55eab..f99746e3a0 100644 --- a/includes/export/DumpNamespaceFilter.php +++ b/includes/export/DumpNamespaceFilter.php @@ -35,7 +35,7 @@ class DumpNamespaceFilter extends DumpFilter { /** * @param DumpOutput &$sink - * @param array $param + * @param string $param * @throws MWException */ function __construct( &$sink, $param ) { @@ -61,7 +61,7 @@ class DumpNamespaceFilter extends DumpFilter { "NS_CATEGORY" => NS_CATEGORY, "NS_CATEGORY_TALK" => NS_CATEGORY_TALK ]; - if ( $param { 0 } == '!' ) { + if ( $param[0] == '!' ) { $this->invert = true; $param = substr( $param, 1 ); } @@ -84,7 +84,7 @@ class DumpNamespaceFilter extends DumpFilter { * @param object $page * @return bool */ - function pass( $page ) { + protected function pass( $page ) { $match = isset( $this->namespaces[$page->page_namespace] ); return $this->invert xor $match; }