aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-09 20:41:52 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-09 20:41:52 +0000
commit2ca5970ab76e5f36a25a9f83e68a1e1c09da0ecf (patch)
tree09dd218be2567ce8a3f8e8d1a5daa6e0bf8e6c44 /engine/lib/elgglib.php
parentcfd3b73ff6922d421d25c6596d8a110521722025 (diff)
downloadelgg-2ca5970ab76e5f36a25a9f83e68a1e1c09da0ecf.tar.gz
elgg-2ca5970ab76e5f36a25a9f83e68a1e1c09da0ecf.tar.bz2
Removed old code from get_submenu().
git-svn-id: http://code.elgg.org/elgg/trunk@3643 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-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);