Index: trunk/extensions/LiquidThreads/classes/NewMessagesController.php |
— | — | @@ -123,7 +123,7 @@ |
124 | 124 | $fields = array( 'wl_user', 'ums_user', 'ums_read_timestamp' ); |
125 | 125 | |
126 | 126 | global $wgVersion; |
127 | | - if ( version_compare( $wgVersion, '1.15.999', '<=' ) ) { |
| 127 | + if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
128 | 128 | $oldPrefCompat = true; |
129 | 129 | |
130 | 130 | $tables[] = 'user'; |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | |
177 | 177 | global $wgVersion; |
178 | 178 | |
179 | | - if ( version_compare( $wgVersion, '1.15.999', '<=' ) ) { |
| 179 | + if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
180 | 180 | $decodedOptions = self::decodeUserOptions( $row->user_options ); |
181 | 181 | |
182 | 182 | $wantsTalkNotification = !isset( $decodedOptions['lqtnotifytalk'] ); |
— | — | @@ -392,8 +392,9 @@ |
393 | 393 | |
394 | 394 | $cval = $wgMemc->get( wfMemcKey( 'lqt-new-messages-count', $user->getId() ) ); |
395 | 395 | |
396 | | - if ( $cval ) |
| 396 | + if ( $cval ) { |
397 | 397 | return $cval; |
| 398 | + } |
398 | 399 | |
399 | 400 | $dbr = wfGetDB( DB_SLAVE ); |
400 | 401 | |