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

Revision: 94240
Author:   jeroendedauw
Date:     2011-08-11 13:14:16 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
fix bug reported by James Hong Kong

Modified Paths:
--------------
    trunk/extensions/SemanticResultFormats/RELEASE-NOTES
    trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php
    trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotPie.php

Modified: trunk/extensions/SemanticResultFormats/RELEASE-NOTES
===================================================================
--- trunk/extensions/SemanticResultFormats/RELEASE-NOTES        2011-08-11 
12:49:30 UTC (rev 94239)
+++ trunk/extensions/SemanticResultFormats/RELEASE-NOTES        2011-08-11 
13:14:16 UTC (rev 94240)
@@ -5,6 +5,7 @@
 == SRF 1.6.1 ==
 
 * Fixed rendering bug in the tagcloud format occuring for inline queries.
+* Fixed jqPlotBar and jqPlotPie rendering on Special:Ask and other special 
pages. 
 
 == SRF 1.6 ==
 

Modified: trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php
===================================================================
--- trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php     
2011-08-11 12:49:30 UTC (rev 94239)
+++ trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php     
2011-08-11 13:14:16 UTC (rev 94240)
@@ -132,10 +132,8 @@
        }
 
        protected function getResultText( SMWQueryResult $res, $outputmode ) {
-               global $wgOut, $wgParser;
+               global $wgOut;
 
-               $wgParser->disableCache();
-
                self::addJavascriptAndCSS();
 
                $this->isHTML = true;

Modified: trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotPie.php
===================================================================
--- trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotPie.php     
2011-08-11 12:49:30 UTC (rev 94239)
+++ trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotPie.php     
2011-08-11 13:14:16 UTC (rev 94240)
@@ -6,10 +6,6 @@
  * @author Yaron Koren
  */
 
-if ( !defined( 'MEDIAWIKI' ) ) {
-    die( 'Not an entry point.' );
-}
-
 class SRFjqPlotPie extends SMWResultPrinter {
        protected $m_width = 400;
        protected $m_height = 400;
@@ -105,9 +101,7 @@
        }
 
        protected function getResultText( SMWQueryResult $res, $outputmode ) {
-               global $wgOut, $wgParser;
-       
-               $wgParser->disableCache();
+               global $wgOut;
 
                $this->addJavascriptAndCSS();
 


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

Reply via email to