diff --git a/html/account/index.php b/html/account/index.php index 5b4974ce..c5349006 100644 --- a/html/account/index.php +++ b/html/account/index.php @@ -7,7 +7,7 @@ if (isset($_FILES['newPP']) && $_FILES['newPP']['error'] == 0) { $tempImagePath = $_FILES['newPP']['tmp_name']; $ImagePath = 'assets/pp/' . $_SESSION['userID'] . '.png'; $rootImagePath = $rootFilePath . 'html/' . $ImagePath; - $imageURL = $rootPageURL . $ImagePath; + $imageURL = "/" . $ImagePath; list($width, $height) = getimagesize($tempImagePath); @@ -46,7 +46,7 @@ if (isset($_FILES['newBanner']) && $_FILES['newBanner']['error'] == 0) { $tempImagePath = $_FILES['newBanner']['tmp_name']; $ImagePath = 'assets/banners/' . $_SESSION['userID'] . '.png'; $rootImagePath = $rootFilePath . 'html/' . $ImagePath; - $imageURL = $rootPageURL . $ImagePath; + $imageURL = "/" . $ImagePath; list($width, $height) = getimagesize($tempImagePath); diff --git a/html/editor/index.php b/html/editor/index.php index 11fc23c7..2205ef64 100644 --- a/html/editor/index.php +++ b/html/editor/index.php @@ -77,7 +77,7 @@ if (isset($_FILES['miniature']) && $_FILES['miniature']['error'] == 0 && isset($ $tempImagePath = $_FILES['miniature']['tmp_name']; $ImagePath = 'assets/miniatures/' . $articleID . '.png'; $rootImagePath = $rootFilePath . 'html/' . $ImagePath; - $imageURL = $rootPageURL . $ImagePath; + $imageURL = "/" . $ImagePath; list($width, $height) = getimagesize($tempImagePath);