r89309 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89308‎ | r89309 | r89310 >
Date:01:15, 2 June 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
minor cleanup
Modified paths:
  • /trunk/extensions/GraphViz/GraphViz.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GraphViz/GraphViz.php
@@ -1,8 +1,5 @@
22 <?php
33 /*
4 - * @date: 2010-11-01
5 - * @version: 0.9 (by hummel-riegel)
6 - *
74 * See mediawiki.org/wiki/Extension:GraphViz for more information
85 *
96 * Extension to allow Graphviz to work inside MediaWiki.
@@ -293,16 +290,11 @@
294291 } elseif ( $wgGraphVizSettings->named == 'sha1' ) {
295292 $storagename .= sha1( $timelinesrc ); // produce sha1-hash
296293 } else { // named == 'named'
 294+ var_dump($wgGraphVizSettings->named);exit;
297295 $storagename .= str_replace( "%", '_perc_',
298 - urlencode(
299 - trim(
300 - str_replace( "\n", '',
301 - str_replace( "\\", '/',
302 - substr( $timelinesrc, 0, strpos( $timelinesrc, '{' ) ) // extract the name of the graph out of the graph
303 - )
304 - )
305 - )
306 - )
 296+ urlencode( trim( str_replace( array( "\n", "\\" ), array( '', '/' ),
 297+ substr( $timelinesrc, 0, strpos( $timelinesrc, '{' ) ) // extract the name of the graph out of the graph
 298+ ) ) )
307299 );
308300 }
309301 $info .= "<pre>storagename=" . $storagename . "</pre>";

Status & tagging log