Bläddra i källkod

Missed a spot. Please use less accusatory language when telling ppl they broke plugins or other things, cuz you make goofs too! ;-)

pdontthink 19 år sedan
förälder
incheckning
c9a09ee14b
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      class/template/Template.class.php

+ 3 - 3
class/template/Template.class.php

@@ -741,9 +741,9 @@ class Template
             $engine = $this->get_template_config($template_set_id, 
                                                  'template_engine', SQ_PHP_TEMPLATE);
             $file_list = array('plugins/' . $plugin . '/' . $file => array(
-                                                      'PATH'   => $file_path,
-                                                      'SET_ID' => $template_set_id,
-                                                      'ENGINE' => $engine,
+                                         'PATH'   => substr($file_path, strlen(SM_PATH)),
+                                         'SET_ID' => $template_set_id,
+                                         'ENGINE' => $engine,
                                                                           )
                               );
             $this->template_file_cache