mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
If date updated more than 2 days in the future, issue a template error and zero the setting out
This commit is contained in:
parent
8f45b58e08
commit
13427781dc
BIN
archive/community.applications-2017.09.17.txz
Normal file
BIN
archive/community.applications-2017.09.17.txz
Normal file
Binary file not shown.
@ -280,6 +280,10 @@ function fixTemplates($template) {
|
|||||||
$template['Beta'] = strtolower(stripslashes($template['Beta']));
|
$template['Beta'] = strtolower(stripslashes($template['Beta']));
|
||||||
}
|
}
|
||||||
$template['Date'] = ( $template['Date'] ) ? strtotime( $template['Date'] ) : 0;
|
$template['Date'] = ( $template['Date'] ) ? strtotime( $template['Date'] ) : 0;
|
||||||
|
if ( $template['Date'] > strtotime("+2 day") ) {
|
||||||
|
$template['Date'] = 0;
|
||||||
|
$statistics['fixedTemplates'][$template['Repo']][$template['Repository']][] = "Invalid Date Updated (More than 2 days in the future) Format used probably not in http://php.net/manual/en/datetime.formats.date.php";
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! $template['MinVer'] ) {
|
if ( ! $template['MinVer'] ) {
|
||||||
$template['MinVer'] = $template['Plugin'] ? "6.1" : "6.0";
|
$template['MinVer'] = $template['Plugin'] ? "6.1" : "6.0";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user