]> git.mxchange.org Git - mailer.git/blobdiff - inc/revision-functions.php
Code style changed, ext-user continued:
[mailer.git] / inc / revision-functions.php
index 40ff69b3f650568580fb4985f77f4c27f385c64d..e61d9788751d69dfd852a1cf351cab7a2d47c615 100644 (file)
@@ -73,7 +73,7 @@ function getRepositoryData ($type = 'Revision') {
        $ret = 'INVALID';
 
        // By default nothing is new... ;-)
-       $new = false;
+       $new = FALSE;
 
        // Is the cache entry there?
        if (isset($GLOBALS['cache_array']['revision'][$type][0])) {
@@ -90,24 +90,24 @@ function getRepositoryData ($type = 'Revision') {
                // Check if 'check_revision_data' is setted (switch for manually rewrite the .revision-File)
                if ((isGetRequestElementSet('check_revision_data')) && (getRequestElement('check_revision_data') == 'yes')) {
                        // Forced rebuild of .revision file
-                       $new = true;
+                       $new = TRUE;
                } else {
                        // Check for revision file
                        if (!isFileReadable($FQFN)) {
                                // Not found, so we need to create it
-                               $new = true;
+                               $new = TRUE;
                        } else {
                                // Revision file found
                                $ins_vers = explode(chr(10), readFromFile($FQFN));
 
                                // Get array for mapping information
                                $mapper = array_flip($GLOBALS['repository_search_for']);
-                               //* DEBUG: */ debugOutput('<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') {
                                        // File needs update!
-                                       $new = true;
+                                       $new = TRUE;
                                } else {
                                        // Generate fake cache entry
                                        foreach ($mapper as $map => $idx) {
@@ -122,7 +122,7 @@ function getRepositoryData ($type = 'Revision') {
                }
 
                // Has it been updated?
-               if ($new === true)  {
+               if ($new === TRUE)  {
                        // Write it
                        writeToFile($FQFN, implode(chr(10), getArrayFromRepositoryData()));