Index: trunk/extensions/Citation/Citation.php |
— | — | @@ -19,13 +19,14 @@ |
20 | 20 | $wgCitationCounter = 1 ; |
21 | 21 | $wgCitationRunning = false ; |
22 | 22 | |
23 | | -function citation_hooker( $parser , $text ) { |
| 23 | +function citation_hooker( &$parser, &$text ) { |
24 | 24 | global $wgCitationCache , $wgCitationCounter , $wgCitationRunning ; |
25 | | - if( $wgCitationRunning ) return ; |
| 25 | + if( $wgCitationRunning ) |
| 26 | + return true; |
26 | 27 | if( count( $wgCitationCache ) == 0 ) |
27 | | - return false; |
| 28 | + return true; |
28 | 29 | if( !isset( $parser->isMainParser ) ) |
29 | | - return false; |
| 30 | + return true; |
30 | 31 | $ret = "" ; |
31 | 32 | foreach( $wgCitationCache AS $num => $entry ) { |
32 | 33 | $x = "<li>" . $entry . " <a href='#citeback{$num}'>↑</a></li>\n" ; |
— | — | @@ -34,6 +35,8 @@ |
35 | 36 | $ret = "<hr /><ol>" . $ret . "</ol>" ; |
36 | 37 | |
37 | 38 | $text .= $ret ; |
| 39 | + |
| 40 | + return true; |
38 | 41 | } |
39 | 42 | |
40 | 43 | function citation_clear_state() { |
— | — | @@ -42,7 +45,7 @@ |
43 | 46 | $wgCitationCounter = 1 ; |
44 | 47 | $wgCitationRunning = false; |
45 | 48 | |
46 | | - return false; |
| 49 | + return true; |
47 | 50 | } |
48 | 51 | |
49 | 52 | function parse_citation( $text , $params , $parser ) { |
Index: trunk/extensions/Review/Review.php |
— | — | @@ -338,10 +338,10 @@ |
339 | 339 | global $wgTitle, $wgUser , $wgReviewExtensionTopics, $wgArticle, $action, $wgRequest; |
340 | 340 | |
341 | 341 | # Do we care? |
342 | | - if( !wfReviewExtensionDoesNamespaceApply ( $wgTitle->getNamespace() ) |
| 342 | + if( !wfReviewExtensionDoesNamespaceApply ( $wgTitle->getNamespace() ) |
343 | 343 | or $wgUser->isBlocked() |
344 | 344 | or ( $action != "view" ) |
345 | | - ) return false; |
| 345 | + ) return true; |
346 | 346 | |
347 | 347 | # Initialize |
348 | 348 | $do_merge = $wgRequest->getBool ( 'do_merge' , false ) ; |
Index: trunk/extensions/FootNote/Footnote.php |
— | — | @@ -46,13 +46,13 @@ |
47 | 47 | $footnoteCount = 1 ; |
48 | 48 | $footnoteRecursionGuard = false; |
49 | 49 | |
50 | | -function insert_endnotes( $parser , $text ) { |
| 50 | +function insert_endnotes( &$parser, &$text ) { |
51 | 51 | global $footnoteNotes , $footnoteCount, $footnoteRecursionGuard ; |
52 | 52 | |
53 | 53 | wfDebug("insert_endnotes:\n<<<$text>>>\n"); |
54 | 54 | |
55 | | - if( $footnoteRecursionGuard ) return false; |
56 | | - if( count( $footnoteNotes ) == 0 ) return false; |
| 55 | + if( $footnoteRecursionGuard ) return true; |
| 56 | + if( count( $footnoteNotes ) == 0 ) return true; |
57 | 57 | |
58 | 58 | $ret = "" ; |
59 | 59 | foreach( $footnoteNotes AS $num => $entry ) { |
Index: trunk/extensions/Watchers/Watchers.php |
— | — | @@ -62,11 +62,11 @@ |
63 | 63 | global $wgTitle; |
64 | 64 | if( $wgTitle->isTalkPage() ) { |
65 | 65 | # No talk pages please |
66 | | - return false; |
| 66 | + return true; |
67 | 67 | } |
68 | 68 | if( $wgTitle->getNamespace() < 0 ) { |
69 | 69 | # No special pages please |
70 | | - return false; |
| 70 | + return true; |
71 | 71 | } |
72 | 72 | |
73 | 73 | wfWatchersAddCache(); |