Extension talk:SpecialExample

From Organic Design
Revision as of 18:11, 22 May 2015 by 127.0.0.1 (talk) (Change source-code blocks to standard format)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Permissions

there is something weird going on with the user rights permissions on Special page extensions derived from Template:SpecialPage. This special page does not appear in the list Special:Allpages as a Restricted special page, but if you remove the user rights required to:

SpecialPage::SpecialPage(
			'SpecialExample',     # name as seen in links etc
			'',       # user rights required changed from'sysop'
			true,          # listed in special:specialpages
			false,         # function called by execute() - defaults to wfSpecial{$name}
			false,         # file included by execute() - defaults to Special{$name}.php, only used if no function
			false          # includable
			);

the extension now shows up as an unrestricted page --Sven 02:01, 7 January 2008 (NZDT)