http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95004

Revision: 95004
Author:   yuvipanda
Date:     2011-08-19 15:03:08 +0000 (Fri, 19 Aug 2011)
Log Message:
-----------
Removed unneccessary  param to AssessmentsExtractor

Modified Paths:
--------------
    trunk/extensions/GPoC/AssessmentsExtractor.php
    trunk/extensions/GPoC/GPoC.hooks.php
    trunk/extensions/GPoC/templates/FilterRatingsTemplate.php

Modified: trunk/extensions/GPoC/AssessmentsExtractor.php
===================================================================
--- trunk/extensions/GPoC/AssessmentsExtractor.php      2011-08-19 14:57:19 UTC 
(rev 95003)
+++ trunk/extensions/GPoC/AssessmentsExtractor.php      2011-08-19 15:03:08 UTC 
(rev 95004)
@@ -5,12 +5,10 @@
  **/
 class AssessmentsExtractor
 {
-       private $mArticle;
        private $mText;
 
-       function __construct( $article, $preparedText ) {
+       function __construct( $preparedText ) {
                $this->mText = $preparedText;
-               $this->mArticle = $article;
        }       
 
        public function extractAssessments() {

Modified: trunk/extensions/GPoC/GPoC.hooks.php
===================================================================
--- trunk/extensions/GPoC/GPoC.hooks.php        2011-08-19 14:57:19 UTC (rev 
95003)
+++ trunk/extensions/GPoC/GPoC.hooks.php        2011-08-19 15:03:08 UTC (rev 
95004)
@@ -47,7 +47,7 @@
                if( $title->getNamespace() == NS_TALK && $revision ) {
                        // All conditions to minimize the situations we've to 
run the job to update the data
                        $preparedText = $article->prepareTextForEdit( $text 
)->output->getText();
-                       $extractor = new AssessmentsExtractor( $article, 
$preparedText );
+                       $extractor = new AssessmentsExtractor( $preparedText );
                        $assessments = $extractor->extractAssessments();
                        GPoCHooks::updateDatabase( $title, $assessments, 
$revision );
                }

Modified: trunk/extensions/GPoC/templates/FilterRatingsTemplate.php
===================================================================
--- trunk/extensions/GPoC/templates/FilterRatingsTemplate.php   2011-08-19 
14:57:19 UTC (rev 95003)
+++ trunk/extensions/GPoC/templates/FilterRatingsTemplate.php   2011-08-19 
15:03:08 UTC (rev 95004)
@@ -59,7 +59,7 @@
                                selection: selection
                        }, function(raw_data) {
                                var data = $.parseJSON(raw_data);
-                               $("#notice").html("Added to selection <a 
href='" + data.selection_url + "'>" + selection + "</a>");
+                               $("#notice").hide().html("Added to selection <a 
href='" + data.selection_url + "'>" + selection + "</a>").fadeIn();
                        });
                        return false;
                });


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to