]> git.mxchange.org Git - mailer.git/blobdiff - inc/install-functions.php
The maximum file size needs to be increased a little. Still you may not need
[mailer.git] / inc / install-functions.php
index 5942280ffa3af7a7728bffd4338c51e71aa0673e..5f027b3f7e1bf44e9e349f585a808337f2c0778f 100644 (file)
@@ -151,7 +151,7 @@ function getInstallerContent () {
                $content = $GLOBALS['install_content'];
        } else {
                // Nothing found, this needs fixing
-               $content = displayMessage('{--INSTALLER_CONTENT_404--}', TRUE);
+               $content = returnMessage('{--INSTALLER_CONTENT_404--}');
        }
 
        // Return content
@@ -164,8 +164,7 @@ function readSqlDump ($FQFN) {
        $content = readFromFile($FQFN);
 
        // Remove some unwanted chars
-       $content = str_replace(chr(13), '', $content);
-       $content = str_replace(PHP_EOL . PHP_EOL, PHP_EOL, $content);
+       $content = str_replace(array(chr(13), PHP_EOL . PHP_EOL), array('', PHP_EOL), $content);
 
        // Return the content
        return $content;