diff --git a/ajax/add.php b/ajax/add.php index 5bfee78a573cbdfe32d0228b7306571cd4d9cd05..1fe0f1b202bfa7a62c312b1e21734c15d74fa855 100644 --- a/ajax/add.php +++ b/ajax/add.php @@ -11,7 +11,6 @@ * @param String $dayOfWeek * @param string $params */ - QUI::$Ajax->registerFunction( 'package_quiqqer_cron_ajax_add', function ($cron, $min, $hour, $day, $month, $dayOfWeek, $params) { diff --git a/ajax/delete.php b/ajax/delete.php index 9c852f526d1663497124936023c0b1fb7acabd4f..69719319dcdab8fb54dcbd283308209897941c94 100644 --- a/ajax/delete.php +++ b/ajax/delete.php @@ -5,7 +5,6 @@ * * @param string $ids - json array */ - QUI::$Ajax->registerFunction( 'package_quiqqer_cron_ajax_delete', function ($ids) { diff --git a/ajax/edit.php b/ajax/edit.php index 42b80ba344e3f1337543a3a1856f5dbe2fd67817..f1dd0ac01ba3b4407b0d0071a5d0213cd3d2ac4f 100644 --- a/ajax/edit.php +++ b/ajax/edit.php @@ -1,7 +1,7 @@ <?php /** - * Add a cron to the cron list + * Edit a cron * * @param String $cronId * @param String $cron @@ -12,7 +12,6 @@ * @param String $dayOfWeek * @param String $params */ - QUI::$Ajax->registerFunction( 'package_quiqqer_cron_ajax_edit', function ($cronId, $cron, $min, $hour, $day, $month, $dayOfWeek, $params) { diff --git a/ajax/execute.php b/ajax/execute.php index 7988fa931e524b0455d28886c3c763a9e08f55d7..eb0d3443bd2d2eefa1487431eb4b53a724cc4119 100644 --- a/ajax/execute.php +++ b/ajax/execute.php @@ -3,14 +3,12 @@ /** * Execute the cron list */ - QUI::$Ajax->registerFunction( 'package_quiqqer_cron_ajax_execute', function () { try { $Manager = new QUI\Cron\Manager(); $Manager->execute(); - } catch (QUI\Exception $Exception) { QUI\System\Log::addError( 'package_quiqqer_cron_ajax_execute() :: ' . $Exception->getMessage() diff --git a/ajax/getList.php b/ajax/getList.php index fd9a9524bf0f0a3ebc088e09c6b36326db7182f9..0154af918700661b26169c3fc9c336104b8dfea6 100644 --- a/ajax/getList.php +++ b/ajax/getList.php @@ -5,7 +5,6 @@ * * @return array */ - QUI::$Ajax->registerFunction( 'package_quiqqer_cron_ajax_getList', function () { diff --git a/ajax/history/get.php b/ajax/history/get.php index 21ee5dbe8341060c3650b8e8a666b794b99b3394..3661893ab5d6df5d0a7f798a855441d61a351ef3 100644 --- a/ajax/history/get.php +++ b/ajax/history/get.php @@ -13,8 +13,8 @@ QUI::$Ajax->registerFunction( $params = json_decode($params, true); return array( - 'page' => (int)$params['page'], - 'data' => $CronManager->getHistoryList($params), + 'page' => (int)$params['page'], + 'data' => $CronManager->getHistoryList($params), 'total' => $CronManager->getHistoryCount() ); }, diff --git a/bin/cron.php b/bin/cron.php index 707a3d731118d212cb64ad592c5ff652103a9bc6..f1058b1debc51c05e1244a05e8df04a23241ad1a 100644 --- a/bin/cron.php +++ b/bin/cron.php @@ -27,7 +27,7 @@ try { if ($User->getId()) { QUI::getSession()->set('uid', $User->getId()); - QUI\Rights\Permission::setUser($User); + QUI\Permissions\Permission::setUser($User); } } } catch (QUI\Exception $Exception) { @@ -41,7 +41,6 @@ try { $Response->setStatusCode(Response::HTTP_OK); $Response->send(); - } catch (QUI\Exception $Exception) { QUI\System\Log::addAlert($Exception->getMessage(), array( 'type' => 'cron execution' diff --git a/locale.xml b/locale.xml index 128bd89195520cc7ee5412b58ab51ecd721502c9..d33d8bb28b98c0f0f2ff4c4a3a3b4af1ccdfd054 100644 --- a/locale.xml +++ b/locale.xml @@ -29,8 +29,8 @@ </locale> <locale name="settings.title"> - <de><![CDATA[Cron Einstellungen]]></de> - <en><![CDATA[Cron settings]]></en> + <de><![CDATA[Cron / Wiederkehrende Aufgaben]]></de> + <en><![CDATA[Cron / Recurring tasks]]></en> </locale> <locale name="settings.cron.title"> <de><![CDATA[Allgemeine Einstellungen]]></de>