]> git.mxchange.org Git - friendica.git/commitdiff
Only include the update.php, when really needed
authorMichael <heluecht@pirati.ca>
Fri, 22 Dec 2017 14:56:40 +0000 (14:56 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 22 Dec 2017 14:56:40 +0000 (14:56 +0000)
boot.php

index 245fdc9035c109a524bae6365c178a97f3d6b107..4571e0aa3a4bfbb83519e172c78b0b9024be91e6 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -37,7 +37,6 @@ require_once 'include/datetime.php';
 require_once 'include/pgettext.php';
 require_once 'include/nav.php';
 require_once 'include/identity.php';
-require_once 'update.php';
 
 define('FRIENDICA_PLATFORM',     'Friendica');
 define('FRIENDICA_CODENAME',     'Asparagus');
@@ -678,6 +677,8 @@ function update_db(App $a)
        }
 
        if ($build != DB_UPDATE_VERSION) {
+               require_once 'update.php';
+
                $stored = intval($build);
                $current = intval(DB_UPDATE_VERSION);
                if ($stored < $current) {