mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 11:20:25 +02:00
Fixed BC bug in newspost (breaking Youtube thumbnail images after re-edit)
This commit is contained in:
@@ -2396,7 +2396,7 @@ class admin_newspost
|
||||
".$frm->help(LAN_NEWS_23)."</td>
|
||||
<td>
|
||||
";
|
||||
if(vartrue($_POST['news_thumbnail']) && $_POST['news_thumbnail'][0] != "{" && substr($_POST['news_thumbnail'],-8) !== '.youtube')//BC compat
|
||||
if(vartrue($_POST['news_thumbnail']) && (strpos($_POST['news_thumbnail'], ",") == false) && $_POST['news_thumbnail'][0] != "{" && substr($_POST['news_thumbnail'],-8) !== '.youtube')//BC compat
|
||||
{
|
||||
$_POST['news_thumbnail'] = "{e_IMAGE}newspost_images/".$_POST['news_thumbnail'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user