1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 04:40:44 +02:00

Scan plugin cron jobs as well

This commit is contained in:
e107steved
2009-11-17 20:47:13 +00:00
parent 52faad8c2e
commit 7c7616ff0f

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org/). | GNU General Public License (http://gnu.org/).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/cron.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/cron.php,v $
| $Revision: 1.16 $ | $Revision: 1.17 $
| $Date: 2009-11-16 22:39:53 $ | $Date: 2009-11-17 20:47:13 $
| $Author: e107coders $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -91,16 +91,16 @@ class cron
// These core functions need to be put into e_BASE/cron.php ie. news_purge() // These core functions need to be put into e_BASE/cron.php e.g. news_purge()
if($this->cronAction == "" || $this->cronAction == "main") if($this->cronAction == '' || $this->cronAction == 'main')
{ {
$this -> cronRenderPage(); $this -> cronRenderPage();
} }
if($this->cronAction == "pref") if($this->cronAction == 'pref')
{ {
$this -> cronRenderPrefs(); $this -> cronRenderPrefs();
} }
@@ -310,7 +310,6 @@ function setCronPwd()
{ {
global $pref; global $pref;
$core_cron = $this->coreCrons;
$new_cron = array(); $new_cron = array();
if(vartrue($pref['e_cron_list'])) if(vartrue($pref['e_cron_list']))
@@ -334,9 +333,9 @@ function setCronPwd()
} }
} }
} }
$this->e_cron = $this->coreCrons;
$this->e_cron = array_merge($core_cron,$new_cron); $this->e_cron['_plugins'] = $new_cron;
//print_a($this->e_cron);
} }