1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Support for automated git sync with a theme repo.

This commit is contained in:
Cameron
2019-06-11 10:09:41 -07:00
parent a6009d5957
commit 2337f8e678
4 changed files with 56 additions and 5 deletions

View File

@@ -173,6 +173,19 @@ class cron_admin_ui extends e_admin_ui
);
}
if(is_dir(e_THEME.$pref['sitetheme']."/.git"))
{
$cronDefaults['_system'][8] = array(
'name' => LAN_CRON_65,
'category' => 'update',
'function' => 'gitrepoTheme',
'description' => LAN_CRON_20_6."<br /><span class='label label-warning'>".LAN_WARNING."</span> ".LAN_CRON_20_8,
// 'available' => e107::getPref('ban_retrigger')
);
}