From 037b09335cf7dfe9bab794be28ea74be01b82d32 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 9 Apr 2007 04:17:36 +0000 Subject: [PATCH] Fixed the repository jump selector --- global.php | 5 +++-- includes/repository.php | 2 +- repository.php | 10 ++++------ templates/default/header.tpl | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/global.php b/global.php index c62433f..691d663 100644 --- a/global.php +++ b/global.php @@ -44,7 +44,8 @@ $fetchtemplates[] = 'doctype'; $fetchtemplates[] = 'headinclude'; $show['reposchooser'] = false; -if ($viewsvn->repos->container AND $dochooser) + +if ($repos->container AND !$hideChooser) { $show['reposchooser'] = true; $fetchtemplates[] = 'select_option'; @@ -56,7 +57,7 @@ $options = ''; if ($show['reposchooser']) { $html = ''; - $options = $viewsvn->repos->fetch_list(); + $options = $repos->fetchList(); foreach ($options AS $option) { $value = $option; diff --git a/includes/repository.php b/includes/repository.php index ff86454..51f78fe 100644 --- a/includes/repository.php +++ b/includes/repository.php @@ -51,7 +51,7 @@ class Repository * Whether or not the path is a container * @var bool */ - private $container; + public $container; // ################################################################### /** diff --git a/repository.php b/repository.php index 7f29e06..eb56d1d 100644 --- a/repository.php +++ b/repository.php @@ -19,22 +19,20 @@ || ################################################################### \*=====================================================================*/ -define('PATH_OVERRIDE', 1); - require_once('./global.php'); // ################################################################### -if ($viewsvn->in['repository']) +if ($input->in['repository']) { - if (in_array($viewsvn->in['repository'], $viewsvn->repos->fetch_list())) + if (in_array($input->in['repository'], $repos->fetchList())) { - header('Location: ' . $viewsvn->path . '/browse.php/' . $viewsvn->in['repository'] . '/'); + header('Location: ' . BSRegister::Get('webpath') . '/browse/' . $input->in['repository'] . ':'); exit; } } -header('Location: ' . $viewsvn->path . '/index.php'); +header('Location: ' . BSRegister::Get('webpath') . '/index.php'); /*=====================================================================*\ || ################################################################### diff --git a/templates/default/header.tpl b/templates/default/header.tpl index d554927..5113772 100644 --- a/templates/default/header.tpl +++ b/templates/default/header.tpl @@ -5,7 +5,7 @@

ViewSVN

-
+ {@"Repository"}: -- 2.22.5