Index: trunk/extensions/SemanticResultFormats/Ploticus/SRF_Ploticus.php |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | } |
106 | 106 | |
107 | 107 | protected function getResultText($res, $outputmode) { |
108 | | - global $smwgIQRunningNumber, $wgUploadDirectory, $wgUploadPath, $wgScriptPath, $srfgPloticusPath, $srfgEnvSettings; |
| 108 | + global $smwgIQRunningNumber, $wgUploadDirectory, $wgUploadPath, $wgArticle, $wgScriptPath, $srfgPloticusPath, $srfgEnvSettings; |
109 | 109 | |
110 | 110 | $this->isHTML = true; |
111 | 111 | $this->outputmode = SMW_OUTPUT_HTML; |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | |
185 | 185 | // we create a hash based on params |
186 | 186 | // this is a great way to see if the params and/or the query result has changed |
187 | | - $hashname = hash('md5', $smwgIQRunningNumber . implode(',',$this->m_params)); |
| 187 | + $hashname = hash('md5', $wgArticle->mTitle . $smwgIQRunningNumber . implode(',',$this->m_params)); |
188 | 188 | if ($this->m_imageformat != 'csv' && $this->m_liveupdating) { |
189 | 189 | // only include contents of result csv in hash when liveupdating is on and imageformat != csv |
190 | 190 | // in this way, doing file_exists check against hash filename will fail when query result has changed |