aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-15 13:46:08 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-15 13:46:08 +0000
commitc6f3234b15bdbd2de3dda10c9941b36ed147fb76 (patch)
tree601a29ca7fc5792feb68469b4fff80388d7eeec8 /engine/lib/elgglib.php
parentd5b835cbf12253bdbb3ce2c89f97e921e06ad1f2 (diff)
downloadelgg-c6f3234b15bdbd2de3dda10c9941b36ed147fb76.tar.gz
elgg-c6f3234b15bdbd2de3dda10c9941b36ed147fb76.tar.bz2
Adding more plugin-related fun
git-svn-id: https://code.elgg.org/elgg/trunk@41 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index ba2156242..1c5f8bb97 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -101,7 +101,7 @@
}
ob_start();
- foreach($viewlist as $view) {
+ foreach($viewlist as $priority => $view) {
if (!isset($CONFIG->views->locations[$view])) {
$location = $CONFIG->viewpath;
@@ -144,7 +144,7 @@
$CONFIG->views->extensions = array();
}
if (!isset($CONFIG->views->extensions[$view])) {
- $CONFIG->views[$view][500] = "{$view}";
+ $CONFIG->views->extensions[$view][500] = "{$view}";
}
while(isset($CONFIG->views->extensions[$view][$priority])) {
$priority++;
@@ -168,6 +168,8 @@
}
if (!isset($CONFIG->views->locations)) {
$CONFIG->views->locations = array($view => $location);
+ } else {
+ $CONFIG->views->locations[$view] = $location;
}
}