dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Updates to Occitan (oc)
[lhc/web/wiklou.git]
/
index.php
diff --git
a/index.php
b/index.php
index
6b4cab0
..
bfbdb36
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-44,6
+44,13
@@
$mediaWiki = new MediaWiki();
wfProfileIn( 'main-misc-setup' );
OutputPage::setEncodings(); # Not really used yet
wfProfileIn( 'main-misc-setup' );
OutputPage::setEncodings(); # Not really used yet
+$maxLag = $wgRequest->getVal( 'maxlag' );
+if ( !is_null( $maxLag ) ) {
+ if ( !$mediaWiki->checkMaxLag( $maxLag ) ) {
+ exit;
+ }
+}
+
# Query string fields
$action = $wgRequest->getVal( 'action', 'view' );
$title = $wgRequest->getVal( 'title' );
# Query string fields
$action = $wgRequest->getVal( 'action', 'view' );
$title = $wgRequest->getVal( 'title' );
@@
-86,4
+93,4
@@
$mediaWiki->finalCleanup ( $wgDeferredUpdateList, $wgLoadBalancer, $wgOut );
$mediaWiki->doUpdates( $wgPostCommitUpdateList );
$mediaWiki->restInPeace( $wgLoadBalancer );
$mediaWiki->doUpdates( $wgPostCommitUpdateList );
$mediaWiki->restInPeace( $wgLoadBalancer );
-?>
+