]> git.mxchange.org Git - mailer.git/blobdiff - inc/template-functions.php
MySQLi requires at least a link resource for all its functions/methods
[mailer.git] / inc / template-functions.php
index 139759e5b0016c80bfe55cbcaaafbb557bb184fc..73bf31ae009e71fa23b505936d955bfd040e798f 100644 (file)
@@ -305,7 +305,7 @@ function loadTemplate ($template, $return = FALSE, $content = array(), $compileC
        }
 
        // Init returned content
-       $ret = '';
+       $templateContent = '';
 
        // Set current template
        $GLOBALS['current_template'] = $template;
@@ -2399,5 +2399,27 @@ function getTemplateBasePath ($part) {
        return $GLOBALS[__FUNCTION__][$part];
 }
 
+// Removes comments with @DEPRECATED
+function removeDeprecatedComment ($output) {
+       // Explode it into pieces ... ;)
+       $lines = explode(chr(10), $output);
+
+       // Walk through all
+       $return = '';
+       foreach ($lines as $line) {
+               // Is there a @DEPRECATED?
+               if (isInString('@DEPRECATED', $line)) {
+                       // Ignore this line
+                       continue;
+               } // END - if
+
+               // Add it
+               $return .= $line . chr(13);
+       } // END - foreach
+
+       // Returned cleaned content
+       return $return;
+}
+
 // [EOF]
 ?>