Pass context to Action::factory
authoraude <aude.wiki@gmail.com>
Thu, 19 Sep 2013 19:06:10 +0000 (19:06 +0000)
committerKrinkle <krinklemail@gmail.com>
Thu, 19 Sep 2013 22:45:56 +0000 (22:45 +0000)
Fixes a PHP Notice that was introduced on every page (follows-up 01d81d88)

Bug: 54344
Change-Id: I24f01c7244089e73b0cf2e0af37c365f9dd051b2

includes/Wiki.php

index c4c67ab..0683d7c 100644 (file)
@@ -428,7 +428,8 @@ class MediaWiki {
 
                $act = $this->getAction();
 
-               $action = Action::factory( $act, $page );
+               $action = Action::factory( $act, $page, $this->context );
+
                if ( $action instanceof Action ) {
                        # Let Squid cache things if we can purge them.
                        if ( $wgUseSquid &&