maj pour le chemin mw_path (relatif a web)
authorroot <root@dj3c1t.net>
Sat, 12 Oct 2013 13:16:24 +0000 (15:16 +0200)
committerroot <root@dj3c1t.net>
Sat, 12 Oct 2013 13:16:24 +0000 (15:16 +0200)
app/observers/mw_observer_sourceml.php
app/out/default/views/forms/sourceml/contact_author.php

index 924c1b4..23cbef8 100644 (file)
@@ -31,8 +31,8 @@
     function after_action(){
       $env = $this->env();
       if($env->etat("mod") == "users"){
-        $env->add_js_file($env->path("mw_path")."libs/tiny_mce/tiny_mce.js");
-        $env->add_js_file($env->path("mw_path")."libs/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php");
+        $env->add_js_file($env->path("web").$env->path("mw_path")."libs/tiny_mce/tiny_mce.js");
+        $env->add_js_file($env->path("web").$env->path("mw_path")."libs/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php");
       }
       if($env->etat("mod") == "sources"){
         $env->add_js_file($env->out_url("js/jquery-1.8.3.min.js"));
index 9547cb0..475c490 100644 (file)
@@ -21,7 +21,7 @@
         <li>
           <label for="ptitcaptcha_entry">anti-spam</label>
           <div class="form_input">
-            <?php echo PtitCaptchaHelper::generateImgTags($this->path("mw_path")."libs/") ?>
+            <?php echo PtitCaptchaHelper::generateImgTags($this->path("web").$this->path("mw_path")."libs/") ?>
             <?php echo PtitCaptchaHelper::generateHiddenTags() ?>
             <?php echo PtitCaptchaHelper::generateInputTags() ?>
           </div>