r53584 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53583‎ | r53584 | r53585 >
Date:11:48, 21 July 2009
Author:ialex
Status:deferred
Tags:
Comment:
* update UploadComplete hook, the object is now a subclass of UploadBase
* whitespaces fixes
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -68,7 +68,7 @@
6969 if ($wgNotifyArticle) {
7070 wfNotifyArticleShow($article));
7171 }
72 - }
 72+ }
7373
7474 Using a hook-running strategy, we can avoid having all this option-specific
7575 stuff in our mainline code. Using hooks, the function becomes:
@@ -270,7 +270,7 @@
271271 'AlternateEdit': before checking if an user can edit a page and
272272 before showing the edit form ( EditPage::edit() ). This is triggered
273273 on &action=edit.
274 -$EditPage : the EditPage object
 274+$EditPage: the EditPage object
275275
276276 'APIAfterExecute': after calling the execute() method of an API module.
277277 Use this to extend core API modules.
@@ -1443,8 +1443,8 @@
14441444 string &$error: output: HTML error to show if upload canceled by returning false
14451445
14461446 'UploadComplete': Upon completion of a file upload
1447 -$uploadForm: Upload form object. File can be accessed by
1448 - $uploadForm->mLocalFile.
 1447+$uploadBase: UploadBase (or subclass) object. File can be accessed by
 1448+ $uploadBase->getLocalFile().
14491449
14501450 'User::mailPasswordInternal': before creation and mailing of a user's new
14511451 temporary password
@@ -1469,7 +1469,6 @@
14701470 $user: User (object) whose permission is being checked
14711471 &$canSend: bool set on input, can override on output
14721472
1473 -
14741473 'UserClearNewTalkNotification': called when clearing the
14751474 "You have new messages!" message, return false to not delete it
14761475 $user: User (object) that'll clear the message
@@ -1515,7 +1514,7 @@
15161515 &$groups: List of implicit (automatically-assigned) groups
15171516
15181517 'UserGetReservedNames': allows to modify $wgReservedUsernames at run time
1519 -*&$reservedUsernames: $wgReservedUsernames
 1518+&$reservedUsernames: $wgReservedUsernames
15201519
15211520 'UserGetRights': Called in User::getRights()
15221521 $user: User to get rights for

Status & tagging log