http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89309

Revision: 89309
Author:   jeroendedauw
Date:     2011-06-02 01:15:40 +0000 (Thu, 02 Jun 2011)
Log Message:
-----------
minor cleanup

Modified Paths:
--------------
    trunk/extensions/GraphViz/GraphViz.php

Modified: trunk/extensions/GraphViz/GraphViz.php
===================================================================
--- trunk/extensions/GraphViz/GraphViz.php      2011-06-02 00:32:43 UTC (rev 
89308)
+++ trunk/extensions/GraphViz/GraphViz.php      2011-06-02 01:15:40 UTC (rev 
89309)
@@ -1,8 +1,5 @@
 <?php
 /*
- * @date: 2010-11-01
- * @version: 0.9 (by hummel-riegel)
- *
  * See mediawiki.org/wiki/Extension:GraphViz for more information
  *
  * Extension to allow Graphviz to work inside MediaWiki.
@@ -293,16 +290,11 @@
                } elseif ( $wgGraphVizSettings->named == 'sha1' ) {
                        $storagename .= sha1( $timelinesrc );  // produce 
sha1-hash
                } else { // named == 'named'
+                       var_dump($wgGraphVizSettings->named);exit;
                        $storagename .=  str_replace( "%", '_perc_',
-                       urlencode(
-                       trim(
-                       str_replace( "\n", '',
-                       str_replace( "\\", '/',
-                       substr( $timelinesrc, 0, strpos( $timelinesrc, '{' ) )  
// extract the name of the graph out of the graph
-                       )
-                       )
-                       )
-                       )
+                               urlencode( trim( str_replace( array( "\n", "\\" 
), array( '', '/' ),
+                                       substr( $timelinesrc, 0, strpos( 
$timelinesrc, '{' ) )  // extract the name of the graph out of the graph
+                               ) ) )
                        );
                }
                $info .= "<pre>storagename=" . $storagename . "</pre>";


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to