From 060a4be4923fd557b542adb1d88850b38b7cba0d Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 3 Mar 2008 12:55:37 +0000 Subject: Views directory fix git-svn-id: https://code.elgg.org/elgg/trunk@54 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine/lib') 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]; } -- cgit v1.2.3