Unverified Commit d15df1d2 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(subscription) Do not use non-existing class SimplePluginError

issue #6152
Showing with 8 additions and 8 deletions
+8 -8
......@@ -171,18 +171,18 @@ class subscriptionInfo extends simplePlugin
$data = $this->import_file;
if (empty($data)) {
/* No file or empty file */
$error = new SimplePluginError(
$this->attributesAccess['import_file'],
htmlescape(_('No data. Did you forgot to upload a file?'))
msg_dialog::display(
_('Import error'),
htmlescape(_('No data. Did you forgot to upload a file?')),
ERROR_DIALOG
);
$error->display();
} elseif (($data = parse_ini_string($data)) === FALSE) {
/* Import of INI failed */
$error = new SimplePluginError(
$this->attributesAccess['import_file'],
htmlescape(_('Failed to parse imported file'))
msg_dialog::display(
_('Import error'),
htmlescape(_('Failed to parse imported file')),
ERROR_DIALOG
);
$error->display();
} else {
/* Import data and save it to the LDAP */
foreach (static::$subscriptionAttributes as $attr => $iniVar) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment