aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-03 12:55:37 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-03 12:55:37 +0000
commit060a4be4923fd557b542adb1d88850b38b7cba0d (patch)
treef395c43abb91ef6209b10257299d4ac739096030 /engine/lib/elgglib.php
parenta68f492daaf56d153f72346b66b5002b2cc46b9d (diff)
downloadelgg-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
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php6
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];
}