SpecialPageExecutor, make sure Skin context is correctly set
authoraddshore <addshorewiki@gmail.com>
Tue, 31 Jul 2018 10:11:50 +0000 (11:11 +0100)
committeraddshore <addshorewiki@gmail.com>
Tue, 31 Jul 2018 10:13:04 +0000 (11:13 +0100)
Bug: T200771
Change-Id: I6d642449a0962f0a6bc242d2121ad3f270d9df77

tests/phpunit/includes/specials/SpecialPageExecutor.php

index e7cfca7..9572e30 100644 (file)
@@ -73,6 +73,9 @@ class SpecialPageExecutor {
 
                $this->setEditTokenFromUser( $context );
 
+               // Make sure the skin context is correctly set https://phabricator.wikimedia.org/T200771
+               $context->getSkin()->setContext( $context );
+
                return $context;
        }