r104097 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104096‎ | r104097 | r104098 >
Date:22:46, 23 November 2011
Author:ashley
Status:ok
Tags:
Comment:
SocialProfile: partially revert r102178 -- turns out that this code is bad copypasta, user_board's columns are prefixed with ub, not ug, and there is no ub_status column at all...
Modified paths:
  • /trunk/extensions/SocialProfile/UserBoard/UserBoardClass.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserBoard/UserBoardClass.php
@@ -148,6 +148,7 @@
149149
150150 $key = wfMemcKey( 'user', 'newboardmessage', $user_id );
151151 $newCount = 0;
 152+ /*
152153 $dbw = wfGetDB( DB_MASTER );
153154 $s = $dbw->selectRow(
154155 'user_board',
@@ -158,6 +159,7 @@
159160 if ( $s !== false ) {
160161 $newCount = $s->count;
161162 }
 163+ */
162164
163165 $wgMemc->set( $key, $newCount );
164166

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102178SocialProfile: as per Markus' in-depth review:...ashley15:06, 6 November 2011

Status & tagging log