Remove some more unused globals

Kill a couple of other unused variables
This commit is contained in:
Sam Reed 2010-07-25 17:12:50 +00:00
parent 6dbac1a865
commit 78d6b8163d
4 changed files with 2 additions and 5 deletions

View file

@ -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();

View file

@ -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 );

View file

@ -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 ) {

View file

@ -23,7 +23,6 @@ class CategoryTreePage extends SpecialPage {
* Constructor
*/
function __construct() {
global $wgOut;
SpecialPage::SpecialPage( 'CategoryTree', '', true );
wfLoadExtensionMessages( 'CategoryTree' );
}