From: garvinhicking <garvinhicking>
Date: Fri, 23 Sep 2005 13:48:44 +0000 (+0000)
Subject: specify full http path to image
X-Git-Tag: 0.9~127
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a2b19d75034e9151d8fa53e130120172dd357653;p=s9y.git

specify full http path to image
---

diff --git a/include/functions_entries_admin.inc.php b/include/functions_entries_admin.inc.php
index b7ef001..c7e8ee8 100644
--- a/include/functions_entries_admin.inc.php
+++ b/include/functions_entries_admin.inc.php
@@ -504,9 +504,9 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
     function Spawn<?php echo $jsname; ?>(<?php echo $spawnMulti ? 'id' : ''; ?>) {
         var editor<?php echo $jsname; ?>    = new HTMLArea("<?php echo $item; ?>"<?php echo $spawnMulti ? ' + id' : ''; ?>);
         var config<?php echo $jsname; ?>    = editor<?php echo $jsname; ?>.config;
-        config<?php echo $jsname; ?>.registerButton('image_selector', '<?PHP echo MANAGE_IMAGES; ?>', 'htmlarea/images/ed_s9yimage.gif', false,
+        config<?php echo $jsname; ?>.registerButton('image_selector', '<?PHP echo MANAGE_IMAGES; ?>', '<?php echo $serendipity['serendipityHTTPPath']; ?>htmlarea/images/ed_s9yimage.gif', false,
             function(editor, id) {
-                window.open('serendipity_admin_image_selector.php?serendipity[textarea]=<?php echo $jsname; ?>', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');
+                window.open('<?php echo $serendipity['serendipityHTTPPath']; ?>serendipity_admin_image_selector.php?serendipity[textarea]=<?php echo $jsname; ?>', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');
                 editorref = editor<?php echo $jsname; ?>;
             }
         );