mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Remove unnecessary procAdminRemoveIcons action
This commit is contained in:
parent
dd6b577780
commit
d861040766
3 changed files with 1 additions and 40 deletions
|
|
@ -18,25 +18,6 @@ class AdminAdminController extends Admin
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove an icon.
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
public function procAdminRemoveIcons()
|
||||
{
|
||||
$site_info = Context::get('site_module_info');
|
||||
$icon_name = Rhymix\Framework\Filters\FilenameFilter::clean(Context::get('iconname'));
|
||||
if (Rhymix\Modules\Admin\Models\Icon::deleteIcon($site_info->domain_srl, $icon_name))
|
||||
{
|
||||
$this->setMessage('success_deleted');
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception('fail_to_delete');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the admin logo.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue