]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Script extended with JavaScript templates and ext-uberwach added, see http://www...
[mailer.git] / inc / functions.php
index ea7a4297b03927ff325b6421940c3a9febd05982..5acdb2688c6ffd4f175d0e48924813409cca7649 100644 (file)
@@ -289,13 +289,16 @@ function LOAD_TEMPLATE ($template, $return=false, $content=array()) {
        } elseif (strpos($template, 'la_') > -1) {
                // 'Logical-area' template found
                $mode = 'la/';
+       } elseif (strpos($template, 'js_') > -1) {
+               // JavaScript template found
+               $mode = 'js/';
        } else {
                // Test for extension
                $test = substr($template, 0, strpos($template, '_'));
                if (EXT_IS_ACTIVE($test)) {
                        // Set extra path to extension's name
-                       $mode = $test.'/';
-               }
+                       $mode = $test . '/';
+               } // END - if
        }
 
        ////////////////////////