Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -282,7 +282,7 @@ |
283 | 283 | if $resultArr was filled. |
284 | 284 | $EditPage : the EditPage object |
285 | 285 | $text : the new text of the article (has yet to be saved) |
286 | | -$resultArr : data in this array will be added to the API result |
| 286 | +&$resultArr : data in this array will be added to the API result |
287 | 287 | |
288 | 288 | 'APIGetAllowedParams': use this hook to modify a module's parameters. |
289 | 289 | &$module: Module object |
— | — | @@ -621,7 +621,7 @@ |
622 | 622 | 'EditFilterMerged': Post-section-merge edit filter |
623 | 623 | $editor: EditPage instance (object) |
624 | 624 | $text: content of the edit box |
625 | | -$error: error message to return |
| 625 | +&$error: error message to return |
626 | 626 | $summary: Edit summary for page |
627 | 627 | |
628 | 628 | 'EditFormPreloadText': Allows population of the edit form when creating |
— | — | @@ -631,7 +631,7 @@ |
632 | 632 | |
633 | 633 | 'EditPage::attemptSave': called before an article is |
634 | 634 | saved, that is before insertNewArticle() is called |
635 | | -&$editpage_Obj: the current EditPage object |
| 635 | +$editpage_Obj: the current EditPage object |
636 | 636 | |
637 | 637 | 'EditPage::importFormData': allow extensions to read additional data |
638 | 638 | posted in the form |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -365,7 +365,7 @@ |
366 | 366 | function edit() { |
367 | 367 | global $wgOut, $wgRequest, $wgEnableJS2system; |
368 | 368 | // Allow extensions to modify/prevent this form or submission |
369 | | - if ( !wfRunHooks( 'AlternateEdit', array( &$this ) ) ) { |
| 369 | + if ( !wfRunHooks( 'AlternateEdit', array( $this ) ) ) { |
370 | 370 | return; |
371 | 371 | } |
372 | 372 | |
— | — | @@ -675,7 +675,7 @@ |
676 | 676 | wfProfileOut( $fname ); |
677 | 677 | |
678 | 678 | // Allow extensions to modify form data |
679 | | - wfRunHooks( 'EditPage::importFormData', array( &$this, $request ) ); |
| 679 | + wfRunHooks( 'EditPage::importFormData', array( $this, $request ) ); |
680 | 680 | } |
681 | 681 | |
682 | 682 | /** |
— | — | @@ -767,7 +767,7 @@ |
768 | 768 | wfProfileIn( $fname ); |
769 | 769 | wfProfileIn( "$fname-checks" ); |
770 | 770 | |
771 | | - if ( !wfRunHooks( 'EditPage::attemptSave', array( &$this ) ) ) |
| 771 | + if ( !wfRunHooks( 'EditPage::attemptSave', array( $this ) ) ) |
772 | 772 | { |
773 | 773 | wfDebug( "Hook 'EditPage::attemptSave' aborted article saving\n" ); |
774 | 774 | return self::AS_HOOK_ERROR; |
— | — | @@ -886,7 +886,7 @@ |
887 | 887 | } |
888 | 888 | |
889 | 889 | // Run post-section-merge edit filter |
890 | | - if ( !wfRunHooks( 'EditFilterMerged', array( &$this, $this->textbox1, &$this->hookError, $this->summary ) ) ) { |
| 890 | + if ( !wfRunHooks( 'EditFilterMerged', array( $this, $this->textbox1, &$this->hookError, $this->summary ) ) ) { |
891 | 891 | # Error messages etc. could be handled within the hook... |
892 | 892 | wfProfileOut( $fname ); |
893 | 893 | return self::AS_HOOK_ERROR; |
— | — | @@ -974,7 +974,7 @@ |
975 | 975 | $oldtext = $this->mArticle->getContent(); |
976 | 976 | |
977 | 977 | // Run post-section-merge edit filter |
978 | | - if ( !wfRunHooks( 'EditFilterMerged', array( &$this, $text, &$this->hookError, $this->summary ) ) ) { |
| 978 | + if ( !wfRunHooks( 'EditFilterMerged', array( $this, $text, &$this->hookError, $this->summary ) ) ) { |
979 | 979 | # Error messages etc. could be handled within the hook... |
980 | 980 | wfProfileOut( $fname ); |
981 | 981 | return self::AS_HOOK_ERROR; |
Index: trunk/phase3/includes/api/ApiEditPage.php |
— | — | @@ -214,7 +214,7 @@ |
215 | 215 | if(!is_null($params['captchaword'])) |
216 | 216 | $wgRequest->setVal( 'wpCaptchaWord', $params['captchaword'] ); |
217 | 217 | $r = array(); |
218 | | - if(!wfRunHooks('APIEditBeforeSave', array(&$ep, $ep->textbox1, &$r))) |
| 218 | + if(!wfRunHooks('APIEditBeforeSave', array($ep, $ep->textbox1, &$r))) |
219 | 219 | { |
220 | 220 | if(count($r)) |
221 | 221 | { |
Index: trunk/extensions/ConfirmEdit/ConfirmEdit_body.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | return self::getInstance()->confirmEditMerged( $editPage, $newtext ); |
25 | 25 | } |
26 | 26 | |
27 | | - static function confirmEditAPI( &$editPage, $newtext, &$resultArr ) { |
| 27 | + static function confirmEditAPI( $editPage, $newtext, &$resultArr ) { |
28 | 28 | return self::getInstance()->confirmEditAPI( $editPage, $newtext, $resultArr ); |
29 | 29 | } |
30 | 30 | |
— | — | @@ -509,7 +509,7 @@ |
510 | 510 | } |
511 | 511 | |
512 | 512 | |
513 | | - function confirmEditAPI( &$editPage, $newtext, &$resultArr ) { |
| 513 | + function confirmEditAPI( $editPage, $newtext, &$resultArr ) { |
514 | 514 | if ( !$this->doConfirmEdit( $editPage, $newtext, false, false ) ) { |
515 | 515 | $this->addCaptchaAPI( $resultArr ); |
516 | 516 | return false; |
Index: trunk/extensions/SpamBlacklist/SpamBlacklist.php |
— | — | @@ -80,7 +80,7 @@ |
81 | 81 | /** |
82 | 82 | * Hook function for EditFilterMerged, replaces wfSpamBlacklistFilter |
83 | 83 | */ |
84 | | -function wfSpamBlacklistFilterMerged( &$editPage, $text, &$hookErr, $editSummary ) { |
| 84 | +function wfSpamBlacklistFilterMerged( $editPage, $text, &$hookErr, $editSummary ) { |
85 | 85 | global $wgTitle; |
86 | 86 | if( is_null( $wgTitle ) ) { |
87 | 87 | # API mode |
— | — | @@ -99,7 +99,7 @@ |
100 | 100 | /** |
101 | 101 | * Hook function for APIEditBeforeSave |
102 | 102 | */ |
103 | | -function wfSpamBlacklistFilterAPIEditBeforeSave( &$editPage, $text, &$resultArr ) { |
| 103 | +function wfSpamBlacklistFilterAPIEditBeforeSave( $editPage, $text, &$resultArr ) { |
104 | 104 | $spamObj = wfSpamBlacklistObject(); |
105 | 105 | $title = $editPage->mArticle->getTitle(); |
106 | 106 | $ret = $spamObj->filter( $title, $text, '', '', $editPage ); |
Index: trunk/extensions/TodoTasks/SpecialTaskList_body.php |
— | — | @@ -198,14 +198,14 @@ |
199 | 199 | return true; |
200 | 200 | } |
201 | 201 | |
202 | | -function todoPreviewAction(&$q) { |
| 202 | +function todoPreviewAction($q) { |
203 | 203 | global $todoPreview; |
204 | 204 | |
205 | 205 | $todoPreview = $q; |
206 | 206 | return true; |
207 | 207 | } |
208 | 208 | |
209 | | -function todoSavePreparser(&$q) { |
| 209 | +function todoSavePreparser($q) { |
210 | 210 | // update the text of the todo so that it has a propper full name in it. |
211 | 211 | // this way, the <dpl> search will work better |
212 | 212 | $newpagetext = ''; |
Index: trunk/extensions/AssertEdit/AssertEdit.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | return false; |
72 | 72 | } |
73 | 73 | } |
74 | | -function efAssertApiEditHook( &$editPage, $textBox, &$result ) { |
| 74 | +function efAssertApiEditHook( $editPage, $textBox, &$result ) { |
75 | 75 | global $wgOut, $wgRequest; |
76 | 76 | |
77 | 77 | $assertName = $wgRequest->getVal( 'assert' ); |