@@ -42,6 +42,15 @@ function checkHost($host, $mw_current) {
|
||||
$version_major = $version_parts[0] . "." . $version_parts[1];
|
||||
if( !array_key_exists($version_major, $mw_current) || $version < $mw_current[$version_major] ) {
|
||||
verbose("WARNING: Outdated MediaWiki $version at $hostidentifier$location", 0);
|
||||
if( array_key_exists($version_major, $mw_current) ) {
|
||||
notifyScript("MediaWiki", $mw_current[$version_major], $version, "$hostidentifier$location");
|
||||
}else {
|
||||
$maxVersion = "0.0";
|
||||
foreach( array_keys($mw_current) as $mw_version ) {
|
||||
if( $maxVersion < $mw_version ) $maxVersion = $mw_version;
|
||||
}
|
||||
notifyScript("MediaWiki", $maxVersion, $version, "$hostidentifier$location");
|
||||
}
|
||||
}else {
|
||||
verbose("Recent MediaWiki $version at $hostidentifier$location", 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user