From 2e8230a45c2d106ac40297ab66a40e5c0e0f518d Mon Sep 17 00:00:00 2001 From: aude Date: Thu, 19 Sep 2013 19:06:10 +0000 Subject: [PATCH] Pass context to Action::factory Fixes a PHP Notice that was introduced on every page (follows-up 01d81d88) Bug: 54344 Change-Id: I24f01c7244089e73b0cf2e0af37c365f9dd051b2 --- includes/Wiki.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index c4c67abde5..0683d7c9f9 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -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 && -- 2.20.1