More places rewritten to use incrementConfigEntry()
[mailer.git] / inc / functions.php
index d26f28da5f3393a184ac002726f458926e48aa86..0ef88afef5cd572dfc706ba36227a7b22d9b362f 100644 (file)
@@ -233,11 +233,7 @@ function LOAD_TEMPLATE($template, $return=false, $content=array()) {
        $template = strtolower($template);
 
        // Count the template load
-       if (getConfig('num_templates') == null) {
-               $_CONFIG['num_templates'] = 1;
-       } else {
-               $_CONFIG['num_templates']++;
-       }
+       incrementConfigEntry('num_templates');
 
        // Prepare IP number and User Agent
        $REMOTE_ADDR     = GET_REMOTE_ADDR();