Index: trunk/extensions/GraphViz/GraphViz.php |
— | — | @@ -286,9 +286,9 @@ |
287 | 287 | $storagename = str_replace( "%", '_perc_', urlencode( $title ) ) . '---'; // clean up pagename (special chars etc) |
288 | 288 | |
289 | 289 | if ( $wgGraphVizSettings->named == 'md5' ) { |
290 | | - $storagename .= md5( $timelinesrc ); // produce md5-hash out of the storagename !can be duplicate! |
| 290 | + $storagename = md5( $storagename . $timelinesrc ); // produce md5-hash out of the storagename !can be duplicate! |
291 | 291 | } elseif ( $wgGraphVizSettings->named == 'sha1' ) { |
292 | | - $storagename .= sha1( $timelinesrc ); // produce sha1-hash |
| 292 | + $storagename = sha1( $storagename . $timelinesrc ); // produce sha1-hash |
293 | 293 | } else { // named == 'named' |
294 | 294 | $storagename .= str_replace( "%", '_perc_', |
295 | 295 | urlencode( trim( str_replace( array( "\n", "\\" ), array( '', '/' ), |