forked from Wavyzz/dolibarr
add new rule
This commit is contained in:
@@ -161,12 +161,10 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
|
||||
$this->box_order = $obj->box_order;
|
||||
$this->fk_user = $obj->fk_user;
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -436,12 +434,10 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
|
||||
{
|
||||
$langs->load("errors");
|
||||
print '<div class="error">'.$langs->trans("Error").' : '.$langs->trans("ErrorDuplicateWidget", $modName, "").'</div>';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
try {
|
||||
include_once $newdir.'/'.$file;
|
||||
}
|
||||
catch (Exception $e)
|
||||
} catch (Exception $e)
|
||||
{
|
||||
print $e->getMessage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user