sprintf(_("The snapshot functionality is enabled, but the required variable '%s' is not set."),
"snapshotBase"),ERROR_DIALOG);
}
returnFALSE;
/* Check if the snapshot_base is defined */
if($this->get_cfg_value('snapshotBase')==''){
/* Send message if not done already */
if(!session::is_set('snapshotFailMessageSend')){
session::set('snapshotFailMessageSend',TRUE);
msg_dialog::display(_('Configuration error'),
sprintf(_('The snapshot functionality is enabled, but the required variable "%s" is not set.'),
'snapshotBase'),ERROR_DIALOG);
}
returnFALSE;
}
/* Check if gzcompress is available */
if(!is_callable("gzcompress")){
/* Send message if not done already */
if(!session::is_set("snapshotFailMessageSend")){
session::set("snapshotFailMessageSend",TRUE);
msg_dialog::display(_("Configuration error"),
sprintf(_("The snapshot functionality is enabled, but the required compression module is missing. Please install '%s'."),"php5-zip / php5-gzip"),ERROR_DIALOG);
}
returnFALSE;
/* Check if gzcompress is available */
if(!is_callable('gzcompress')){
/* Send message if not done already */
if(!session::is_set('snapshotFailMessageSend')){
session::set('snapshotFailMessageSend',TRUE);
msg_dialog::display(_('Configuration error'),
sprintf(_('The snapshot functionality is enabled, but the required compression module is missing. Please install "%s".'),'php5-zip / php5-gzip'),ERROR_DIALOG);
}
returnTRUE;
returnFALSE;
}
returnFALSE;
returnTRUE;
}
functionloadPlist(pluglist$plist)
...
...
@@ -906,7 +889,7 @@ class config {
/* Walk through supplied list and feed only translated categories */