Merge "Do not try to add edit links to the HTML in contexts without a Title"

This commit is contained in:
jenkins-bot 2017-11-10 02:15:45 +00:00 committed by Gerrit Code Review
commit 854cd3e851

View File

@ -194,6 +194,10 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
protected function isAllowedPageAction( $action ) {
$title = $this->getTitle();
$config = $this->getConfig();
// Title may be undefined in certain contexts (T179833)
if ( !$title ) {
return false;
}
if (
! in_array( $action, $config->get( 'MinervaPageActions' ) )