/** * Returns status of plugin. * * @return array - status info array; 'available' key determines if the plugin should be loaded or not */ public function checkStatus() { $va_status = parent::checkStatus(); if (caPhantomJSInstalled() && !($vb_wkhtmltopdf = caWkhtmltopdfInstalled())) { $va_status['available'] = true; // prefer use of wkhtmltopdf when available } else { $va_status['available'] = false; if ($vb_wkhtmltopdf) { $va_status['unused'] = true; $va_status['warnings'][] = _t("Didn't load because wkhtmltopdf is available and preferred"); } } return $va_status; }
/** * Returns status of plugin. * * @return array - status info array; 'available' key determines if the plugin should be loaded or not */ public function checkStatus() { $va_status = parent::checkStatus(); $va_status['available'] = caWkhtmltopdfInstalled(); return $va_status; }