diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-03 12:55:37 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-03 12:55:37 +0000 |
commit | 060a4be4923fd557b542adb1d88850b38b7cba0d (patch) | |
tree | f395c43abb91ef6209b10257299d4ac739096030 | |
parent | a68f492daaf56d153f72346b66b5002b2cc46b9d (diff) | |
download | elgg-060a4be4923fd557b542adb1d88850b38b7cba0d.tar.gz elgg-060a4be4923fd557b542adb1d88850b38b7cba0d.tar.bz2 |
Views directory fix
git-svn-id: https://code.elgg.org/elgg/trunk@54 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/elgglib.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 56db07027..53940a0fb 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -104,7 +104,11 @@ foreach($viewlist as $priority => $view) {
if (!isset($CONFIG->views->locations[$view])) {
- $location = $CONFIG->viewpath;
+ if (!isset($CONFIG->viewpath)) {
+ $location = dirname(dirname(dirname(__FILE__))) . "views/";
+ } else {
+ $location = $CONFIG->viewpath;
+ }
} else {
$location = $CONFIG->views->locations[$view];
}
|