validation in translation.en & unassigned case
This commit is contained in:
@@ -52,7 +52,7 @@ class ScheduleRunCommand extends BaseCommand
|
||||
$ending = isset($p->startingTime) ? $p->endingTime : "23:59";
|
||||
|
||||
$timezone = isset($p->timezone) && $p->timezone != "" ? $p->timezone : date_default_timezone_get();
|
||||
$body = str_replace("-c", $user . " -c", $p->body);
|
||||
$body = str_replace(" -c"," " . $user . " -c", $p->body);
|
||||
$that->schedule->exec($body)->cron($p->expression)->between($starting, $ending)->timezone($timezone)->when(function () use ($p) {
|
||||
$now = Carbon::now();
|
||||
$result = false;
|
||||
|
||||
@@ -17,8 +17,11 @@ try {
|
||||
$fields["category"] = $category;
|
||||
$fields["lang"] = SYS_LANG;
|
||||
$fields["workspace"] = config("system.workspace");
|
||||
if (G::browserCacheFilesGetUid()) {
|
||||
$fields["translation"] = "/js/ext/translation." . SYS_LANG . "." . G::browserCacheFilesGetUid() . ".js";
|
||||
|
||||
} else {
|
||||
$fields["translation"] = "/js/ext/translation." . SYS_LANG . ".js";
|
||||
}
|
||||
$G_PUBLISH->addContent('smarty' , 'scheduler/index.html' , '', '' , $fields); //Adding a HTML file .html
|
||||
$G_PUBLISH->addContent('smarty' , PATH_HOME . 'public_html/lib/taskscheduler/index.html'); //Adding a HTML file .html
|
||||
G::RenderPage("publish" , "raw");
|
||||
|
||||
Reference in New Issue
Block a user