Index: trunk/extensions/SemanticResultFormats/Ploticus/SRF_Ploticus.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | } |
98 | 98 | |
99 | 99 | protected function getResultText( $res, $outputmode ) { |
100 | | - global $smwgIQRunningNumber, $wgUploadDirectory, $wgUploadPath, $wgArticle, $wgScriptPath, $srfgPloticusPath, $srfgEnvSettings; |
| 100 | + global $smwgIQRunningNumber, $wgUploadDirectory, $wgUploadPath, $wgTitle, $wgScriptPath, $srfgPloticusPath, $srfgEnvSettings; |
101 | 101 | |
102 | 102 | $this->isHTML = true; |
103 | 103 | $this->outputmode = SMW_OUTPUT_HTML; |
— | — | @@ -177,7 +177,7 @@ |
178 | 178 | |
179 | 179 | // we create a hash based on params |
180 | 180 | // 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 ) ); |
182 | 182 | if ( $this->m_liveupdating ) { |
183 | 183 | // only include contents of result csv in hash when liveupdating is on |
184 | 184 | // in this way, doing file_exists check against hash filename will fail when query result has changed |