r105805 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105804‎ | r105805 | r105806 >
Date:16:45, 11 December 2011
Author:yuvipanda
Status:deferred
Tags:
Comment:
Logs article assessment addition too now
Modified paths:
  • /trunk/extensions/SelectionSifter/SelectionSifter.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SelectionSifter/SelectionSifter.hooks.php
@@ -32,6 +32,30 @@
3333 0
3434 );
3535 $rating->saveAll();
 36+
 37+ $timestamp = wfTimestamp( TS_MW );
 38+ if( !empty( $assessment['quality'] ) ) {
 39+ AssessmentChangeLog::makeEntry(
 40+ $project,
 41+ $main_title->getNamespace(),
 42+ $main_title->getText(),
 43+ $timestamp,
 44+ "quality",
 45+ "",
 46+ $assessment['quality']
 47+ );
 48+ }
 49+ if( !empty( $assessment['importance'] ) ) {
 50+ AssessmentChangeLog::makeEntry(
 51+ $project,
 52+ $main_title->getNamespace(),
 53+ $main_title->getText(),
 54+ $timestamp,
 55+ "importance",
 56+ "",
 57+ $assessment['importance']
 58+ );
 59+ }
3660 }
3761 }
3862 }

Status & tagging log