Index: Timeline.php
===================================================================
--- Timeline.php (revision 37037)
+++ Timeline.php (working copy)
@@ -36,7 +36,7 @@
function renderTimeline( $timelinesrc )
{
- global $wgUploadDirectory, $wgUploadPath, $IP, $wgTimelineSettings, $wgArticlePath, $wgTmpDirectory;
+ global $wgUploadDirectory, $wgUploadPath, $IP, $wgTimelineSettings, $wgArticlePath, $wgTmpDirectory, $wgTitle;
$hash = md5( $timelinesrc );
$dest = $wgUploadDirectory."/timeline/";
if ( ! is_dir( $dest ) ) { mkdir( $dest, 0777 ); }
@@ -71,14 +71,14 @@
} else {
@$map = file_get_contents( $fname.".map" );
- if (substr(php_uname(), 0, 7) == "Windows") {
+ if (wfIsWindows()) {
$ext = "gif";
} else {
$ext = "png";
}
- $txt = "".
- "";
+ $txt = "".
+ "getPrefixedText() . " timeline\">"; #TODO: Use messages and a proper translation
}
return $txt;
}