X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ftemplate-functions.php;h=9d8412562c1ec72d02d08e28957a32ab5531a8ae;hp=139759e5b0016c80bfe55cbcaaafbb557bb184fc;hb=ab3fe2cd85baa68950504b41ea5c057899178a49;hpb=b52976057a73d26d63b6c98a4fc9efb3e07f40e7 diff --git a/inc/template-functions.php b/inc/template-functions.php index 139759e5b0..9d8412562c 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -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] ?>