]> git.mjollnir.org Git - s9y.git/commitdiff
Use uploadHTTPPath.
authorgarvinhicking <garvinhicking>
Mon, 12 Sep 2005 18:59:02 +0000 (18:59 +0000)
committergarvinhicking <garvinhicking>
Mon, 12 Sep 2005 18:59:02 +0000 (18:59 +0000)
serendipity_admin_image_selector.php

index 26704063d3ceecda930044a1abf37569cf8f2612..ba821b6b9954a24c3a0cd676b74d2cff9b4c0dcb 100644 (file)
@@ -111,7 +111,7 @@ switch ($serendipity['GET']['step']) {
         }
 
         $file           = serendipity_fetchImageFromDatabase($serendipity['GET']['image']);
-        $file['imgsrc'] = $serendipity['serendipityHTTPPath'] . $serendipity['uploadPath'] . $file['path'] . $file['name'] . '.' . $file['thumbnail_name'] . '.' . $file['extension'];
+        $file['imgsrc'] = $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $file['path'] . $file['name'] . '.' . $file['thumbnail_name'] . '.' . $file['extension'];
         if ($file['hotlink']) {
             $imgName    = $file['path'];
         } else {
@@ -194,7 +194,7 @@ switch ($serendipity['GET']['step']) {
                 <?php if ($file['hotlink']) { ?>
                 <input type="text"  name="serendipity[url]" size="30" value="<?php echo $file['path']; ?>" /><br />
                 <?php } else { ?>
-                <input type="text"  name="serendipity[url]" size="30" value="<?php echo $serendipity['serendipityHTTPPath'] . $serendipity['uploadPath'] . $file['path'] . $file['name'] .'.'. $file['extension']; ?>" /><br />
+                <input type="text"  name="serendipity[url]" size="30" value="<?php echo $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $file['path'] . $file['name'] .'.'. $file['extension']; ?>" /><br />
                 <?php } ?>
                 <?php serendipity_plugin_api::hook_event('frontend_image_selector_imagelink', $file); ?>
                 <br />