mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 17:51:00 +00:00
Remove some more unused globals
Kill a couple of other unused variables
This commit is contained in:
parent
6dbac1a865
commit
78d6b8163d
|
@ -31,7 +31,7 @@ class CategoryTreeCategoryViewer extends CategoryViewer {
|
|||
* Add a subcategory to the internal lists
|
||||
*/
|
||||
function addSubcategoryObject( $cat, $sortkey, $pageLength ) {
|
||||
global $wgContLang, $wgOut, $wgRequest;
|
||||
global $wgRequest;
|
||||
|
||||
$title = $cat->getTitle();
|
||||
|
||||
|
|
|
@ -362,7 +362,7 @@ function efCategoryTreeArticleFromTitle( $title, &$article ) {
|
|||
* OutputPageMakeCategoryLinks hook, override category links
|
||||
*/
|
||||
function efCategoryTreeOutputPageMakeCategoryLinks( $out, &$categories, &$links ) {
|
||||
global $wgContLang, $wgCategoryTreePageCategoryOptions;
|
||||
global $wgCategoryTreePageCategoryOptions;
|
||||
|
||||
$ct = new CategoryTree( $wgCategoryTreePageCategoryOptions );
|
||||
|
||||
|
|
|
@ -792,8 +792,6 @@ class CategoryTree {
|
|||
* Creates a Title object from a user provided (and thus unsafe) string
|
||||
*/
|
||||
static function makeTitle( $title ) {
|
||||
global $wgContLang, $wgCanonicalNamespaceNames;
|
||||
|
||||
$title = trim( $title );
|
||||
|
||||
if ( $title === null || $title === '' || $title === false ) {
|
||||
|
|
|
@ -23,7 +23,6 @@ class CategoryTreePage extends SpecialPage {
|
|||
* Constructor
|
||||
*/
|
||||
function __construct() {
|
||||
global $wgOut;
|
||||
SpecialPage::SpecialPage( 'CategoryTree', '', true );
|
||||
wfLoadExtensionMessages( 'CategoryTree' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue