Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | if ($wgNotifyArticle) { |
70 | 70 | wfNotifyArticleShow($article)); |
71 | 71 | } |
72 | | - } |
| 72 | + } |
73 | 73 | |
74 | 74 | Using a hook-running strategy, we can avoid having all this option-specific |
75 | 75 | stuff in our mainline code. Using hooks, the function becomes: |
— | — | @@ -270,7 +270,7 @@ |
271 | 271 | 'AlternateEdit': before checking if an user can edit a page and |
272 | 272 | before showing the edit form ( EditPage::edit() ). This is triggered |
273 | 273 | on &action=edit. |
274 | | -$EditPage : the EditPage object |
| 274 | +$EditPage: the EditPage object |
275 | 275 | |
276 | 276 | 'APIAfterExecute': after calling the execute() method of an API module. |
277 | 277 | Use this to extend core API modules. |
— | — | @@ -1443,8 +1443,8 @@ |
1444 | 1444 | string &$error: output: HTML error to show if upload canceled by returning false |
1445 | 1445 | |
1446 | 1446 | '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(). |
1449 | 1449 | |
1450 | 1450 | 'User::mailPasswordInternal': before creation and mailing of a user's new |
1451 | 1451 | temporary password |
— | — | @@ -1469,7 +1469,6 @@ |
1470 | 1470 | $user: User (object) whose permission is being checked |
1471 | 1471 | &$canSend: bool set on input, can override on output |
1472 | 1472 | |
1473 | | - |
1474 | 1473 | 'UserClearNewTalkNotification': called when clearing the |
1475 | 1474 | "You have new messages!" message, return false to not delete it |
1476 | 1475 | $user: User (object) that'll clear the message |
— | — | @@ -1515,7 +1514,7 @@ |
1516 | 1515 | &$groups: List of implicit (automatically-assigned) groups |
1517 | 1516 | |
1518 | 1517 | 'UserGetReservedNames': allows to modify $wgReservedUsernames at run time |
1519 | | -*&$reservedUsernames: $wgReservedUsernames |
| 1518 | +&$reservedUsernames: $wgReservedUsernames |
1520 | 1519 | |
1521 | 1520 | 'UserGetRights': Called in User::getRights() |
1522 | 1521 | $user: User to get rights for |