New debugging function debugOutput() introduced, some rewrites to EL:
[mailer.git] / inc / revision-functions.php
index 2b4b74702ae21d9a8d68f0f49b271eaeb8e1e0f3..a87bfc48862b32e2ab3e7611500a70ad8a13ba8d 100644 (file)
@@ -78,7 +78,7 @@ function getActualVersion ($type = 'Revision') {
 
                                // Get array for mapping information
                                $mapper = array_flip(getSearchFor());
-                               //* DEBUG: */ print('<pre>mapper='.print_r($mapper, true).'</pre>ins_vers=<pre>'.print_r($ins_vers, true).'</pre>');
+                               //* DEBUG: */ debugOutput('<pre>mapper='.print_r($mapper, true).'</pre>ins_vers=<pre>'.print_r($ins_vers, true).'</pre>');
 
                                // Is the content valid?
                                if ((!is_array($ins_vers)) || (count($ins_vers) <= 0) || (!isset($ins_vers[$mapper[$type]])) || (trim($ins_vers[$mapper[$type]]) == '') || ($ins_vers[0]) == 'new') {