From a1c4d0ca932e7045a110e4ce0ff787b73e5ef697 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 20 May 2013 17:36:29 -0700 Subject: [PATCH] fix include paths when started via cmdline --- boot.php | 19 ++++++++++--------- include/pgettext.php | 2 +- util/messages.po | 4 ++-- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/boot.php b/boot.php index 6819abd3b0..71de66e68c 100644 --- a/boot.php +++ b/boot.php @@ -12,7 +12,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php'); require_once('include/features.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '3.1.1704' ); +define ( 'FRIENDICA_VERSION', '3.1.1706' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DB_UPDATE_VERSION', 1163 ); define ( 'EOL', "
\r\n" ); @@ -437,6 +437,14 @@ if(! class_exists('App')) { startup(); + set_include_path( + 'include' . PATH_SEPARATOR + . 'library' . PATH_SEPARATOR + . 'library/phpsec' . PATH_SEPARATOR + . 'library/langdet' . PATH_SEPARATOR + . '.' ); + + $this->scheme = 'http'; if(x($_SERVER,'HTTPS') && $_SERVER['HTTPS']) $this->scheme = 'https'; @@ -471,15 +479,8 @@ if(! class_exists('App')) { $argc --; } - set_include_path( - "include/$this->hostname" . PATH_SEPARATOR - . 'include' . PATH_SEPARATOR - . 'library' . PATH_SEPARATOR - . 'library/phpsec' . PATH_SEPARATOR - . 'library/langdet' . PATH_SEPARATOR - . '.' ); + set_include_path("include/$this->hostname" . PATH_SEPARATOR . get_include_path()); - if((x($_SERVER,'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'],0,2) === "q=") { $this->query_string = substr($_SERVER['QUERY_STRING'],2); // removing trailing / - maybe a nginx problem diff --git a/include/pgettext.php b/include/pgettext.php index 93dd3e4b6d..0c003a7500 100644 --- a/include/pgettext.php +++ b/include/pgettext.php @@ -1,6 +1,6 @@ \n" "Language-Team: LANGUAGE \n"