admin fixes
This commit is contained in:
@@ -42,7 +42,7 @@ class MikescherGitGraph
|
||||
{
|
||||
$p = self::getPathRenderedData();
|
||||
|
||||
if (!file($p)) return ['result'=>'err', 'message' => 'Rendered data not found'];
|
||||
if (!file_exists($p)) return ['result'=>'err', 'message' => 'Rendered data not found'];
|
||||
|
||||
if (filemtime($p) < time()-(3*7*24*60*60)) return ['result'=>'warn', 'message' => 'Rendered data is older than 3 weeks'];
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ class Programs
|
||||
|
||||
public static function listUpdateData()
|
||||
{
|
||||
$a = require (__DIR__ . '/../statics/updates/programupdates.php');
|
||||
$a = require (__DIR__ . '/../statics/updates/_all.php');
|
||||
return $a;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user