aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];
}