Index: trunk/extensions/GraphViz/GraphViz.php |
— | — | @@ -1,8 +1,5 @@ |
2 | 2 | <?php |
3 | 3 | /* |
4 | | - * @date: 2010-11-01 |
5 | | - * @version: 0.9 (by hummel-riegel) |
6 | | - * |
7 | 4 | * See mediawiki.org/wiki/Extension:GraphViz for more information |
8 | 5 | * |
9 | 6 | * Extension to allow Graphviz to work inside MediaWiki. |
— | — | @@ -293,16 +290,11 @@ |
294 | 291 | } elseif ( $wgGraphVizSettings->named == 'sha1' ) { |
295 | 292 | $storagename .= sha1( $timelinesrc ); // produce sha1-hash |
296 | 293 | } else { // named == 'named' |
| 294 | + var_dump($wgGraphVizSettings->named);exit; |
297 | 295 | $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 | + ) ) ) |
307 | 299 | ); |
308 | 300 | } |
309 | 301 | $info .= "<pre>storagename=" . $storagename . "</pre>"; |