aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 02:27:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 02:27:36 +0000
commit28a52ae81a78bff05d864dce226d3b1a9517a8c3 (patch)
treefa138050907e779a0426563a4fdab770b6ba4cce
parent0d7a1b4b52d6e5c66d59589dca1ec0b8a3a7e1fd (diff)
downloadelgg-28a52ae81a78bff05d864dce226d3b1a9517a8c3.tar.gz
elgg-28a52ae81a78bff05d864dce226d3b1a9517a8c3.tar.bz2
$CONFIG->path is not set up early enough for some elgg deprecate notices
git-svn-id: http://code.elgg.org/elgg/trunk@7342 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/version.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/version.php b/engine/lib/version.php
index f4e2ab9f6..4ffe85bc5 100644
--- a/engine/lib/version.php
+++ b/engine/lib/version.php
@@ -72,8 +72,10 @@ function upgrade_code($version, $quiet = FALSE) {
function get_version($humanreadable = false) {
global $CONFIG;
- if (include($CONFIG->path . "version.php")) {
- return (!$humanreadable) ? $version : $release;
+ if (isset($CONFIG->path)) {
+ if (include($CONFIG->path . "version.php")) {
+ return (!$humanreadable) ? $version : $release;
+ }
}
return FALSE;