1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

featurebox bugfixes

This commit is contained in:
secretr
2009-12-13 10:28:15 +00:00
parent 321e57d58d
commit ddba35bc51
3 changed files with 14 additions and 10 deletions

View File

@@ -9,8 +9,8 @@
* Featurebox administration
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/featurebox/admin_config.php,v $
* $Revision: 1.14 $
* $Date: 2009-12-12 16:40:41 $
* $Revision: 1.15 $
* $Date: 2009-12-13 10:28:15 $
* $Author: secretr $
*
*/
@@ -143,7 +143,7 @@ class fb_category_ui extends e_admin_ui
{
if($this->getModel()->getSqlErrorNumber() == 1062)
{
$templates = $this->getFieldAttr('fb_category_template', 'writeParms', array());
$templates = e107::getLayouts('featurebox', 'featurebox_category', 'front', '', true, false);
$msg = e107::getMessage();
$msg->error('Layout <strong>'.vartrue($templates[$new_data['fb_category_template']], 'n/a').'</strong> is in use by another category. Layout should be unique per category. ');
$msg->error($mod == 'create' ? LAN_CREATED_FAILED : LAN_UPDATED_FAILED);