Index: trunk/extensions/Premoderation/SpecialPremoderation.php |
— | — | @@ -160,9 +160,9 @@ |
161 | 161 | } |
162 | 162 | |
163 | 163 | $rev = Revision::newFromID( $row['pmq_page_last_id'] ); |
164 | | - $diff = new DifferenceEngine( $rev->getTitle() ); |
| 164 | + $diff = new DifferenceEngine(); |
165 | 165 | $diff->showDiffStyle(); |
166 | | - $formattedDiff = $diff->generateDiffBody( $rev->getText(), $row['pmq_text'] ); |
| 166 | + $formattedDiff = $diff->generateDiffBody( isset( $rev ) ? $rev->getText() : '', $row['pmq_text'] ); |
167 | 167 | |
168 | 168 | $wgOut->addHTML( '<h2>' . wfMsg( 'premoderation-diff-h2' ) . '</h2>' . |
169 | 169 | "<table class='mw-abusefilter-diff-multiline'><col class='diff-marker' />" . |
Index: trunk/extensions/Premoderation/Premoderation.class.php |
— | — | @@ -105,6 +105,8 @@ |
106 | 106 | } |
107 | 107 | |
108 | 108 | public static function checkWhitelist( $ip ) { |
| 109 | + global $wgMemc; |
| 110 | + |
109 | 111 | $whitelist = self::loadWhitelist(); |
110 | 112 | |
111 | 113 | $memcKey = wfMemcKey( 'whitelisted', $ip ); |