mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
parent
cf6fab9443
commit
a047757fef
@ -508,6 +508,12 @@ class news_admin_ui extends e_admin_ui
|
||||
e107::getDb()->update('submitnews', "submitnews_auth = 1 WHERE submitnews_id = ".intval($new_data['submitted_id'])." LIMIT 1");
|
||||
}
|
||||
|
||||
if(!empty($new_data['news_sef']) && ($existingSef = e107::getDb()->retrieve('news', 'news_sef', "news_sef = '".$new_data['news_sef']."' AND news_id != ".$id)))
|
||||
{
|
||||
$existingLAN = e107::getParser()->lanVars(LAN_NEWS_95,$existingSef,true );
|
||||
e107::getMessage()->addWarning($existingLAN);
|
||||
}
|
||||
|
||||
|
||||
$this->processPings();
|
||||
e107::getEvent()->trigger('newspost',$new_data);
|
||||
@ -536,6 +542,12 @@ class news_admin_ui extends e_admin_ui
|
||||
|
||||
$this->clearCache();
|
||||
|
||||
if(!empty($new_data['news_sef']) && ($existingSef = e107::getDb()->retrieve('news', 'news_sef', "news_sef = '".$new_data['news_sef']."' AND news_id != ".$id)))
|
||||
{
|
||||
$existingLAN = e107::getParser()->lanVars(LAN_NEWS_95,$existingSef,true );
|
||||
e107::getMessage()->addWarning($existingLAN);
|
||||
}
|
||||
|
||||
//$ecache->clear("nq_news_"); - supported by cache::clear() now
|
||||
//$ecache->clear("nomd5_news_"); supported by cache::clear() now
|
||||
|
||||
|
@ -218,5 +218,6 @@ define("LAN_NEWS_91", "List-view limit per page");
|
||||
define("LAN_NEWS_92", "eg. news.php?all or news.php?cat.1 or news.php?tag=xxx");
|
||||
define("LAN_NEWS_93", "List-view content");
|
||||
define("LAN_NEWS_94", "Items assigned to these templates will be displayed in the list.");
|
||||
define("LAN_NEWS_95", "Another news item is using the SEF URL: [x]");
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user