Popravek detekcije protokola pri editor uploadu
This commit is contained in:
parent
96cc9611b1
commit
8999445ee1
@ -64,7 +64,7 @@ if (!isset ($_POST['posted']) && (isset ($_GET['image']) && $_GET['image'] == 1)
|
||||
$final = $nakljucno .$ime;
|
||||
|
||||
// Preverimo protokol in ga ustrezno replacamo
|
||||
$upload_protocol = (strpos('https://', $site_url)) ? 'https://' : 'http://';
|
||||
$upload_protocol = (strpos($site_url, 'https://')) ? 'https://' : 'http://';
|
||||
$file_url = str_replace($upload_protocol, "", $site_url).'uploadi/editor/doc/'.$final;
|
||||
|
||||
if (move_uploaded_file($_FILES['editorDatoteka']['tmp_name'], $site_path .'uploadi/editor/doc/' .$final)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user