'Block' => 'SpecialBlock',
'Unblock' => 'SpecialUnblock',
'BlockList' => 'SpecialBlockList',
+ 'AutoblockList' => 'SpecialAutoblockList',
'ChangePassword' => 'SpecialChangePassword',
'BotPasswords' => 'SpecialBotPasswords',
'PasswordReset' => 'SpecialPasswordReset',
'Revisiondelete' => 'SpecialRevisionDelete',
'RunJobs' => 'SpecialRunJobs',
'Specialpages' => 'SpecialSpecialpages',
+ 'PageData' => 'SpecialPageData'
];
private static $list;
$pages = [];
foreach ( self::getPageList() as $name => $rec ) {
$page = self::getPage( $name );
- if ( $page->isListed() && !$page->isRestricted() ) {
+ if ( $page && $page->isListed() && !$page->isRestricted() ) {
$pages[$name] = $page;
}
}
}
foreach ( self::getPageList() as $name => $rec ) {
$page = self::getPage( $name );
- if (
- $page->isListed()
+ if ( $page
+ && $page->isListed()
&& $page->isRestricted()
&& $page->userCanExecute( $user )
) {
* @param bool $including Bool output is being captured for use in {{special:whatever}}
* @param LinkRenderer|null $linkRenderer (since 1.28)
*
- * @return bool
+ * @return bool|Title
*/
public static function executePath( Title &$title, IContextSource &$context, $including = false,
LinkRenderer $linkRenderer = null