Fixed the repository jump selector
[viewsvn.git] / repository.php
index 7f29e0676b96bf38a3523cac96709c8601302e75..eb56d1d194e42ea48fb4c39403c71cdee0ea8305 100644 (file)
 || ###################################################################
 \*=====================================================================*/
 
-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');
 
 /*=====================================================================*\
 || ###################################################################