dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove usages of Title::get{Previous,Next}RevisionId"
[lhc/web/wiklou.git]
/
includes
/
export
/
DumpNamespaceFilter.php
diff --git
a/includes/export/DumpNamespaceFilter.php
b/includes/export/DumpNamespaceFilter.php
index
12b9b55
..
f99746e
100644
(file)
--- a/
includes/export/DumpNamespaceFilter.php
+++ b/
includes/export/DumpNamespaceFilter.php
@@
-35,7
+35,7
@@
class DumpNamespaceFilter extends DumpFilter {
/**
* @param DumpOutput &$sink
/**
* @param DumpOutput &$sink
- * @param
array
$param
+ * @param
string
$param
* @throws MWException
*/
function __construct( &$sink, $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 ];
"NS_CATEGORY" => NS_CATEGORY,
"NS_CATEGORY_TALK" => NS_CATEGORY_TALK ];
- if ( $param
{ 0 }
== '!' ) {
+ if ( $param
[0]
== '!' ) {
$this->invert = true;
$param = substr( $param, 1 );
}
$this->invert = true;
$param = substr( $param, 1 );
}
@@
-84,7
+84,7
@@
class DumpNamespaceFilter extends DumpFilter {
* @param object $page
* @return bool
*/
* @param object $page
* @return bool
*/
- function pass( $page ) {
+
protected
function pass( $page ) {
$match = isset( $this->namespaces[$page->page_namespace] );
return $this->invert xor $match;
}
$match = isset( $this->namespaces[$page->page_namespace] );
return $this->invert xor $match;
}