]> git.mjollnir.org Git - s9y.git/commitdiff
specify full http path to image
authorgarvinhicking <garvinhicking>
Fri, 23 Sep 2005 13:48:44 +0000 (13:48 +0000)
committergarvinhicking <garvinhicking>
Fri, 23 Sep 2005 13:48:44 +0000 (13:48 +0000)
include/functions_entries_admin.inc.php

index b7ef001211fc158788f2f9a6bb5164c94d33c147..c7e8ee83c61c78623518505f6c8307f83fc2844f 100644 (file)
@@ -504,9 +504,9 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
     function Spawn<?php echo $jsname; ?>(<?php echo $spawnMulti ? 'id' : ''; ?>) {\r
         var editor<?php echo $jsname; ?>    = new HTMLArea("<?php echo $item; ?>"<?php echo $spawnMulti ? ' + id' : ''; ?>);\r
         var config<?php echo $jsname; ?>    = editor<?php echo $jsname; ?>.config;\r
-        config<?php echo $jsname; ?>.registerButton('image_selector', '<?PHP echo MANAGE_IMAGES; ?>', 'htmlarea/images/ed_s9yimage.gif', false,\r
+        config<?php echo $jsname; ?>.registerButton('image_selector', '<?PHP echo MANAGE_IMAGES; ?>', '<?php echo $serendipity['serendipityHTTPPath']; ?>htmlarea/images/ed_s9yimage.gif', false,\r
             function(editor, id) {\r
-                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');\r
+                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');\r
                 editorref = editor<?php echo $jsname; ?>;\r
             }\r
         );\r