Extension talk:UserPageEditProtection/Archive1

Don't work with MediaWiki 1.11 :( --201.52.31.55 11:04, 28 September 2007 (UTC)

I edited the code just a little:
 * Using local $user var instead of global $wgUser as per Manual:Hooks/userCan.
 * Returning true so that future functions that hook userCan can do their thing.
 * Only $result needs to be passed by reference especially since you're not changing $title or $user.
 * Not checking all sub-pages for the user's name. The previous way would allow someone to create/edit a sub-page under someone else's userpage using their own username (e.g. User:NormalUser/SpamUser). --Egingell 09:40, 16 October 2007 (UTC)

Please add compatibility with version 1.11 and ability of choosing namespases.