From 869128f2ef7ffee7fcd5546bf4c8878d71c451f3 Mon Sep 17 00:00:00 2001 From: Legoktm Date: Mon, 11 Aug 2014 23:01:03 +0000 Subject: [PATCH] Revert "MonoBook: Use SkinFactory" This reverts commit c3e1a7fa597b51eb2e516e0e5005d6968d98ede7. Doing it this way is unnecessarily backwards-incompatible, and there's probably a nicer way to do this. Change-Id: Iaceeb01526004de006b4f6cb708d1e947e59090c --- MonoBook.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MonoBook.php b/MonoBook.php index 62d8930..97c0cd8 100644 --- a/MonoBook.php +++ b/MonoBook.php @@ -40,9 +40,7 @@ $wgAutoloadClasses['MonoBookTemplate'] = __DIR__ . '/MonoBookTemplate.php'; $wgMessagesDirs['MonoBook'] = __DIR__ . '/i18n'; // Register skin -SkinFactory::getDefaultInstance()->register( 'monobook', 'MonoBook', function() { - return new SkinMonoBook(); -} ); +$wgValidSkinNames['monobook'] = 'MonoBook'; // Register modules $wgResourceModules['skins.monobook.styles'] = array(