fix improper relative paths, incidental to #21564
authorMark Wells <mark@freeside.biz>
Sun, 30 Aug 2015 04:27:39 +0000 (21:27 -0700)
committerMark Wells <mark@freeside.biz>
Sun, 30 Aug 2015 04:27:46 +0000 (21:27 -0700)
httemplate/elements/htmlarea.html
httemplate/elements/template_image-dialog.html

index 7c40e61..d8b2512 100644 (file)
@@ -12,7 +12,7 @@ Example:
 </%doc>
 
 % #init
-<SCRIPT TYPE="text/javascript" src="<% $p %>elements/ckeditor/ckeditor.js">
+<SCRIPT TYPE="text/javascript" src="<% $fsurl %>elements/ckeditor/ckeditor.js">
 </SCRIPT>
 
 % #editor
@@ -35,7 +35,7 @@ my $config = {
   'skin'                => 'kama',
   'toolbarCanCollapse'  => JSON::true,
   'removePlugins'       => 'elementspath',
-  'basePath'            => $p.'elements/ckeditor/',
+  'basePath'            => $fsurl.'elements/ckeditor/',
   'enterMode'           => 2,
   %{ $opt{config} || {} },
 };
index f7fb0c2..b471d28 100644 (file)
@@ -14,7 +14,7 @@ url - to redirect to after upload, otherwise just refreshes dialog window
 </%doc>
 
 <% include('/elements/xmlhttp.html',
-        'url'  => $p.'misc/xmlhttp-template_image.cgi',
+        'url'  => $fsurl.'misc/xmlhttp-template_image.cgi',
         'subs' => [ 'get_template_image' ],
    ) %>
 
@@ -75,7 +75,7 @@ url - to redirect to after upload, otherwise just refreshes dialog window
 <% include('/elements/form-file_upload.html',
      'name'      => 'TemplateImageUploadForm',
      'id'        => 'TemplateImageUploadForm',
-     'action'    => $p.'misc/process/template_image-upload.cgi',
+     'action'    => $fsurl.'misc/process/template_image-upload.cgi',
      'num_files' => 1,
      'fields'    => [ 'name', 'agentnum' ],
      'url'       => $opt{'url'} || 'javascript:refreshImageList(1)',