/**
* Simple dump output filter to exclude all talk pages.
*
- * Copyright © 2003, 2005, 2006 Brion Vibber <brion@pobox.com>
+ * Copyright © 2003, 2005, 2006 Brion Vibber <brion@pobox.com>
* https://www.mediawiki.org/
*
* This program is free software; you can redistribute it and/or modify
* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* @ingroup Dump
*/
* @param object $page
* @return bool
*/
- function pass( $page ) {
- return !MWNamespace::isTalk( $page->page_namespace );
+ protected function pass( $page ) {
+ return !MediaWikiServices::getInstance()->getNamespaceInfo()->
+ isTalk( $page->page_namespace );
}
}