implemented notify.patch from issue #26

thanks to Wim for contributing
This commit is contained in:
florian
2014-01-04 14:01:54 +00:00
parent 1cf0e0b373
commit 60644ea2bc
8 changed files with 43 additions and 3 deletions

View File

@@ -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);
}