]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Add an additional way to fetch the basepath (See pull request 2161)
[friendica.git] / boot.php
index fb65eff22c8e4503de21ccdcf2453b2a95671ac9..6759e805f245ab4e994278d6b98a5885ee3c4277 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -17,7 +17,7 @@ require_once('include/dbstructure.php');
 
 define ( 'FRIENDICA_PLATFORM',     'Friendica');
 define ( 'FRIENDICA_CODENAME',     'Lily of the valley');
-define ( 'FRIENDICA_VERSION',      '3.4.3-dev' );
+define ( 'FRIENDICA_VERSION',      '3.4.3-rc' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.23'    );
 define ( 'DB_UPDATE_VERSION',      1191      );
 define ( 'EOL',                    "<br />\r\n"     );
@@ -640,6 +640,9 @@ if(! class_exists('App')) {
                        if ($basepath == "")
                                $basepath = $_SERVER["PWD"];
 
+                       if ($basepath == "")
+                               $basepath = dirname(__FILE__);
+
                        return($basepath);
                }
 
@@ -734,6 +737,11 @@ if(! class_exists('App')) {
 
                function init_pagehead() {
                        $interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 40000);
+
+                       // If the update is "deactivated" set it to the highest integer number (~24 days)
+                       if ($interval < 0)
+                               $interval = 2147483647;
+
                        if($interval < 10000)
                                $interval = 40000;