http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89857
Revision: 89857
Author: jeroendedauw
Date: 2011-06-10 22:36:18 +0000 (Fri, 10 Jun 2011)
Log Message:
-----------
small tweak suggested by Katkov Yury
Modified Paths:
--------------
trunk/extensions/GraphViz/GraphViz.php
Modified: trunk/extensions/GraphViz/GraphViz.php
===================================================================
--- trunk/extensions/GraphViz/GraphViz.php 2011-06-10 22:33:49 UTC (rev
89856)
+++ trunk/extensions/GraphViz/GraphViz.php 2011-06-10 22:36:18 UTC (rev
89857)
@@ -286,9 +286,9 @@
$storagename = str_replace( "%", '_perc_', urlencode( $title )
) . '---'; // clean up pagename (special chars etc)
if ( $wgGraphVizSettings->named == 'md5' ) {
- $storagename .= md5( $timelinesrc ); // produce
md5-hash out of the storagename !can be duplicate!
+ $storagename = md5( $storagename . $timelinesrc ); //
produce md5-hash out of the storagename !can be duplicate!
} elseif ( $wgGraphVizSettings->named == 'sha1' ) {
- $storagename .= sha1( $timelinesrc ); // produce
sha1-hash
+ $storagename = sha1( $storagename . $timelinesrc ); //
produce sha1-hash
} else { // named == 'named'
$storagename .= str_replace( "%", '_perc_',
urlencode( trim( str_replace( array( "\n", "\\"
), array( '', '/' ),
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs