aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php19
1 files changed, 3 insertions, 16 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 154f801ac..f67220f57 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -261,7 +261,7 @@ function elgg_view($view, $vars = "", $bypass = false, $debug = false, $viewtype
if (!file_exists($view_file) || !include($view_file)) {
// requested view does not exist
$error = "$viewtype/$view view does not exist.";
-
+
// attempt to load default view
if ($viewtype != 'default') {
if (file_exists($default_view_file) && include($default_view_file)) {
@@ -272,7 +272,7 @@ function elgg_view($view, $vars = "", $bypass = false, $debug = false, $viewtype
$error = "Neither $viewtype/$view nor default/$view view exists.";
}
}
-
+
// log warning
elgg_log($error, 'WARNING');
}
@@ -896,19 +896,6 @@ function get_submenu() {
ksort($submenu_register);
foreach($submenu_register as $groupname => $submenu_register_group) {
- foreach($submenu_register_group as $key => $item) {
- if (substr_count($item->value, $_SERVER['REQUEST_URI'])) {
- $comparevals[$key] = levenshtein($item->value, $_SERVER['REQUEST_URI']);
- if ($comparevals[$key] < $maxcompareval) {
- $maxcompareval = $comparevals[$key];
- $preselected = $key;
- $preselectedgroup = $groupname;
- }
- }
- }
- }
-
- foreach($submenu_register as $groupname => $submenu_register_group) {
$submenu = "";
foreach($submenu_register_group as $key => $item) {
@@ -2411,4 +2398,4 @@ define('ACCESS_PUBLIC',2);
define('ACCESS_FRIENDS',-2);
register_elgg_event_handler('init','system','elgg_init');
-register_elgg_event_handler('boot','system','elgg_boot',1000); \ No newline at end of file
+register_elgg_event_handler('boot','system','elgg_boot',1000);