Index: trunk/extensions/DumpHTML/wm-scripts/index.inc |
— | — | @@ -6,6 +6,10 @@ |
7 | 7 | $inProgressDir = @readlink( '/a/static/downloads/in_progress' ); |
8 | 8 | $inProgressText = $inProgressDir ? |
9 | 9 | htmlspecialchars( date( 'F Y', strtotime( basename( $inProgressDir ) . '-01' ) ) ) : false; |
| 10 | + |
| 11 | + # Show browsing link to the HTML dumps. |
| 12 | + # Disable them when they are not generated |
| 13 | + $enableBrowsing = false; |
10 | 14 | ?> |
11 | 15 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
12 | 16 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> |
— | — | @@ -126,6 +130,7 @@ |
127 | 131 | <ul> |
128 | 132 | <li><strong><a href="https://www.mediawiki.org/downloads/<?php echo $encCurrentBase; ?>">Downloads</a></strong></li> |
129 | 133 | </ul> |
| 134 | +<?php if( $enableBrowsing ) { ?> |
130 | 135 | <h2>Browse</h2> |
131 | 136 | <p>Try before you download, click on a language code below.</p> |
132 | 137 | |
— | — | @@ -148,6 +153,7 @@ |
149 | 154 | } |
150 | 155 | ?> |
151 | 156 | </p> |
| 157 | +<?php } // enableBrowsings ?> |
152 | 158 | <div class="visualClear"></div> |
153 | 159 | </div> |
154 | 160 | </div> |