mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
Fixed BC bug in newspost (breaking Youtube thumbnail images after re-edit)
This commit is contained in:
parent
5906897d90
commit
4692d7bd13
@ -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'];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user