aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 4c98c84c4..2ccf87154 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -312,10 +312,10 @@
if (file_exists($dir) && is_dir($dir)) {
if ($handle = opendir($dir)) {
while ($view = readdir($handle)) {
- if (!in_array($view, array('.','..'))) {
- if (is_dir($view)) {
+ if (!in_array($view, array('.','..','.svn','CVS'))) {
+ if (is_dir($dir . '/' . $view)) {
if ($val = get_views($dir . '/' . $view, $base . '/' . $view)) {
- array_merge($return, $val);
+ $return = array_merge($return, $val);
}
} else {
$view = str_replace('.php','',$view);