* @return bool
*/
public function disableFlexibleJobsExtension(CRM_Queue_TaskContext $ctx) {
- civicrm_api3('Extension', 'disable', array('key' => 'com.klangsoft.flexiblejobs'));
+ try {
+ civicrm_api3('Extension', 'disable', array('key' => 'com.klangsoft.flexiblejobs'));
+ }
+ catch (CiviCRM_API3_Exception $e) {
+ // just ignore if the extension isn't installed
+ }
return TRUE;
}
<td class="label">{$form.scheduled_run_date.label}</td>
<td>{$form.scheduled_run_date.html}<br />
<div dlass="description">{ts}Do not run this job before this date / time. The run frequency selected above will apply thereafter.{/ts}<br />
- {ts}Leave blank to run{/ts} {if $action eq 1}{ts}as soon as possible{/ts}{else}{ts}at next run frequency{/ts}{/if}.
+ {if $action eq 1}{ts}Leave blank to run as soon as possible.{/ts}{else}{ts}Leave blank to run at next run frequency.{/ts}{/if}
</div>
</td>
</tr>