* [MOD] Improved CSS & JS resources handling.

* [MOD] Improved bootstrap workflow. Work in progress.
This commit is contained in:
nuxsmin
2018-02-08 23:10:12 +01:00
parent 74741853bd
commit 2cbaed9965
125 changed files with 1216 additions and 1104 deletions

View File

@@ -26,8 +26,8 @@ namespace SP\Repositories\UserGroup;
use SP\Core\Acl\Acl;
use SP\Core\Exceptions\SPException;
use SP\DataModel\UserGroupData;
use SP\DataModel\ItemSearchData;
use SP\DataModel\UserGroupData;
use SP\Log\Log;
use SP\Repositories\Repository;
use SP\Repositories\RepositoryItemInterface;
@@ -54,7 +54,7 @@ class UserGroupRepository extends Repository implements RepositoryItemInterface
public function delete($id)
{
if ($this->checkInUse($id)) {
throw new SPException(SPException::SP_WARNING, __u('Grupo en uso'));
throw new SPException(__u('Grupo en uso'), SPException::WARNING);
}
$query = /** @lang SQL */
@@ -272,7 +272,7 @@ class UserGroupRepository extends Repository implements RepositoryItemInterface
public function create($itemData)
{
if ($this->checkDuplicatedOnAdd($itemData)) {
throw new SPException(SPException::SP_INFO, __u('Nombre de grupo duplicado'));
throw new SPException(__u('Nombre de grupo duplicado'), SPException::INFO);
}
$query = /** @lang SQL */
@@ -322,7 +322,7 @@ class UserGroupRepository extends Repository implements RepositoryItemInterface
public function update($itemData)
{
if ($this->checkDuplicatedOnUpdate($itemData)) {
throw new SPException(SPException::SP_INFO, __u('Nombre de grupo duplicado'));
throw new SPException(__u('Nombre de grupo duplicado'), SPException::INFO);
}
$query = /** @lang SQL */