[dev] midas bug

Tim Gorter email at teletechnics.com
Wed Oct 8 18:16:15 PDT 2003


When creating javascript html using wizard in midas module,
it creates it as
<script lang..... ...domain.name/midas/adjs.php">

where adjs.php no longer exist.

consequently changing it to .../ad.php results in an error in log

where in midas/lib/Display.php on line 41 it creates
dir/to/midas/lib/Display/.php

diff attached below..

also note that the other methods i.e. PHP using PEAR calls on
../midas/display.php which is also a non-existant file.
I have not tried to fix this..


Index: genhtml.php
===================================================================
RCS file: /repository/midas/genhtml.php,v
retrieving revision 1.4
diff -u -r1.4 genhtml.php
--- genhtml.php 28 Sep 2003 08:20:45 -0000      1.4
+++ genhtml.php 9 Oct 2003 01:15:03 -0000
@@ -79,7 +79,7 @@
     $form->getInfo($vars, $info);
     switch ($type) {
     case 'javascript':
-        $url = Horde::applicationUrl('adjs.php', true);
+        $url = Horde::applicationUrl('ad.php?d=js', true);
         if (!empty($url_params)) {
             $url = Util::addParameter($url, $url_params);
         }



More information about the dev mailing list