mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Issue #3798 - Inline editing of Forum Name was changing SEF URL.
This commit is contained in:
@@ -395,7 +395,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
|||||||
// make sure the forum_name contains only plain text, no bbcode or html
|
// make sure the forum_name contains only plain text, no bbcode or html
|
||||||
$new_data['forum_name'] = trim(e107::getParser()->toText($new_data['forum_name']));
|
$new_data['forum_name'] = trim(e107::getParser()->toText($new_data['forum_name']));
|
||||||
}
|
}
|
||||||
if(empty($new_data['forum_sef']) && !empty($new_data['forum_name']))
|
if(isset($new_data['forum_sef']) && empty($new_data['forum_sef']) && !empty($new_data['forum_name']))
|
||||||
{
|
{
|
||||||
$new_data['forum_sef'] = eHelper::title2sef($new_data['forum_name']);
|
$new_data['forum_sef'] = eHelper::title2sef($new_data['forum_name']);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user