Index: Timeline.php
===================================================================
--- Timeline.php (revision 60396)
+++ Timeline.php (working copy)
@@ -44,8 +44,10 @@
}
function renderTimeline( $timelinesrc ){
- global $wgUploadDirectory, $wgUploadPath, $IP, $wgTimelineSettings, $wgArticlePath, $wgTmpDirectory;
+ global $wgUploadDirectory, $wgUploadPath, $IP, $wgTimelineSettings, $wgArticlePath, $wgTmpDirectory, $wgRenderHashAppend;
$hash = md5( $timelinesrc );
+ if ($wgRenderHashAppend != "")
+ $hash = md5( $hash . $wgRenderHashAppend );
$dest = $wgUploadDirectory."/timeline/";
if ( ! is_dir( $dest ) ) { mkdir( $dest, 0777 ); }
if ( ! is_dir( $wgTmpDirectory ) ) { mkdir( $wgTmpDirectory, 0777 ); }
@@ -102,7 +104,7 @@
$map = "";
$map = easyTimelineFixMap( $map );
- if( substr( php_uname(), 0, 7 ) == "Windows" ) {
+ if (wfIsWindows()) {
$ext = "gif";
} else {
$ext = "png";
@@ -110,7 +112,7 @@
$url = "{$wgUploadPath}/timeline/{$hash}.{$ext}";
$txt = $map .
- "";
if( $expired ) {