Sfoglia il codice sorgente

added cron notice on healthchecks plugin
changed notice title on healthchecks plugin
added button type for notice on healthchecks plugin

CauseFX 4 anni fa
parent
commit
ac518fe24c

+ 2 - 2
api/functions/option-functions.php

@@ -126,13 +126,13 @@ trait OptionsFunction
 							<div class="col-lg-12">
 								<div class="panel panel-info">
 									<div class="panel-heading">
-										<span lang="en">Cron Instructions</span>
+										<span lang="en">Organizr Enable Cron Instructions</span>
 									</div>
 									<div class="panel-wrapper collapse in" aria-expanded="true">
 										<div class="panel-body">
 											<h3 lang="en">Instructions for your install type</h3>
 											<span>' . $installInstruction . '</span>
-											<button onclick="checkCronFile();" class="btn btn-outline btn-info btn-lg btn-block" lang="en">Check Cron Status</button>
+											<button type="button" onclick="checkCronFile();" class="btn btn-outline btn-info btn-lg btn-block" lang="en">Check Cron Status</button>
 											<div class="m-t-15 hidden cron-results-container">
 												<div class="well">
 													<pre class="cron-results"></pre>

+ 3 - 2
api/plugins/healthChecks/plugin.php

@@ -22,7 +22,7 @@ class HealthChecks extends Organizr
 	{
 		return array(
 			'Cron' => array(
-				array(
+				/*array(
 					'type' => 'html',
 					'label' => '',
 					'override' => 12,
@@ -49,7 +49,8 @@ class HealthChecks extends Organizr
 							</div>
 						</div>
 						'
-				),
+				),*/
+				$this->settingsOption('cron-file'),
 				$this->settingsOption('blank'),
 				$this->settingsOption('enable', 'HEALTHCHECKS-cron-run-enabled'),
 				$this->settingsOption('cron', 'HEALTHCHECKS-cron-run-schedule')