From 9ef21d65fe39adca598f9c5dcdfaaab51d332750 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 9 Apr 2007 05:24:18 +0000 Subject: [PATCH] Clean up ConstructNavbar() so we don't have to make repeated calls to BSRegister::Get() --- includes/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 808159f..004d7bb 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -29,8 +29,9 @@ function ConstructNavbar() { $path = preg_split('#/#', BSRegister::Get('input')->in['path'], -1, PREG_SPLIT_NO_EMPTY); + $input =& BSRegister::Get('input'); - $html = '[' . BSRegister::Get('input')->in['repos'] . ']: '; + $html = '[' . $input->in['repos'] . ']: '; if (empty($path)) { @@ -41,7 +42,7 @@ function ConstructNavbar() foreach ($path AS $part) { $build .= '/' . $part; - $html .= '/ ' . $part . ' '; + $html .= '/ ' . $part . ' '; } return $html; -- 2.43.5