https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112585
Revision: 112585
Author: hashar
Date: 2012-02-28 11:05:08 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
Bug 34767 : static.wikipedia.org show useless browsing link
HTML Dump are no more generated so there is no point in having links
to non existant places.
Modified Paths:
--------------
trunk/extensions/DumpHTML/wm-scripts/index.inc
Modified: trunk/extensions/DumpHTML/wm-scripts/index.inc
===================================================================
--- trunk/extensions/DumpHTML/wm-scripts/index.inc 2012-02-28 10:44:43 UTC
(rev 112584)
+++ trunk/extensions/DumpHTML/wm-scripts/index.inc 2012-02-28 11:05:08 UTC
(rev 112585)
@@ -6,6 +6,10 @@
$inProgressDir = @readlink( '/a/static/downloads/in_progress' );
$inProgressText = $inProgressDir ?
htmlspecialchars( date( 'F Y', strtotime( basename(
$inProgressDir ) . '-01' ) ) ) : false;
+
+ # Show browsing link to the HTML dumps.
+ # Disable them when they are not generated
+ $enableBrowsing = false;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
@@ -126,6 +130,7 @@
<ul>
<li><strong><a href="/downloads/<?php echo $encCurrentBase;
?>">Downloads</a></strong></li>
</ul>
+<?php if( $enableBrowsing ) { ?>
<h2>Browse</h2>
<p>Try before you download, click on a language code below.</p>
@@ -148,6 +153,7 @@
}
?>
</p>
+<?php } // enableBrowsings ?>
<div class="visualClear"></div>
</div>
</div>
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs