r80168 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80167‎ | r80168 | r80169 >
Date:14:56, 13 January 2011
Author:ialex
Status:deferred
Tags:
Comment:
Changed $wgArticle to $wgTitle, no real functional modification, just to make grepping more correct
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Ploticus/SRF_Ploticus.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Ploticus/SRF_Ploticus.php
@@ -96,7 +96,7 @@
9797 }
9898
9999 protected function getResultText( $res, $outputmode ) {
100 - global $smwgIQRunningNumber, $wgUploadDirectory, $wgUploadPath, $wgArticle, $wgScriptPath, $srfgPloticusPath, $srfgEnvSettings;
 100+ global $smwgIQRunningNumber, $wgUploadDirectory, $wgUploadPath, $wgTitle, $wgScriptPath, $srfgPloticusPath, $srfgEnvSettings;
101101
102102 $this->isHTML = true;
103103 $this->outputmode = SMW_OUTPUT_HTML;
@@ -177,7 +177,7 @@
178178
179179 // we create a hash based on params
180180 // this is a great way to see if the params and/or the query result has changed
181 - $hashname = hash( 'md5', $wgArticle->mTitle . $smwgIQRunningNumber . implode( ',', $this->m_params ) );
 181+ $hashname = hash( 'md5', $wgTitle->getPrefixedDBkey() . $smwgIQRunningNumber . implode( ',', $this->m_params ) );
182182 if ( $this->m_liveupdating ) {
183183 // only include contents of result csv in hash when liveupdating is on
184184 // in this way, doing file_exists check against hash filename will fail when query result has changed

Status & tagging log