mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +02:00
remove duplication
This commit is contained in:
@@ -147,7 +147,7 @@ class news_cat_ui extends e_admin_ui
|
|||||||
$sef = e107::getParser()->toDB($new_data['category_sef']);
|
$sef = e107::getParser()->toDB($new_data['category_sef']);
|
||||||
if(e107::getDb()->count('news_category', '(*)', "category_sef='{$sef}' AND category_id!=".intval($id)))
|
if(e107::getDb()->count('news_category', '(*)', "category_sef='{$sef}' AND category_id!=".intval($id)))
|
||||||
{
|
{
|
||||||
e107::getMessage()->addError(LAN_NEWS_66);
|
e107::getMessage()->addError(LAN_NEWS_65);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return $new_data;
|
return $new_data;
|
||||||
|
@@ -197,7 +197,7 @@ define("LAN_NEWS_62", "Error accessing database, or no news items found");
|
|||||||
define("LAN_NEWS_63", "Create Category");
|
define("LAN_NEWS_63", "Create Category");
|
||||||
define("LAN_NEWS_64", "Old Submitted");
|
define("LAN_NEWS_64", "Old Submitted");
|
||||||
define("LAN_NEWS_65", "Please choose unique SEF URL string for this category");
|
define("LAN_NEWS_65", "Please choose unique SEF URL string for this category");
|
||||||
define("LAN_NEWS_66", "Please choose unique SEF URL string for this category");
|
define("LAN_NEWS_66", ""); // Unused
|
||||||
define("LAN_NEWS_67", "Close");
|
define("LAN_NEWS_67", "Close");
|
||||||
define("LAN_NEWS_68", "Submitted Item");
|
define("LAN_NEWS_68", "Submitted Item");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user