From b35d086696bba4e1ffd2076cb1c64ed8d387339e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 29 Aug 2005 23:51:02 +0000 Subject: [PATCH] Allow disabling of path::parse --- global.php | 9 ++++++--- index.php | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/global.php b/global.php index e30b9c8..b6ef8b5 100644 --- a/global.php +++ b/global.php @@ -12,9 +12,12 @@ require_once('./includes/init.php'); -$path = $viewsvn->paths->parse(); -$repos = $viewsvn->paths->fetch_repos($path); -$relpath = $viewsvn->paths->fetch_path($path); +if (!defined('PATH_OVERRIDE') OR PATH_OVERRIDE != 1) +{ + $path = $viewsvn->paths->parse(); + $repos = $viewsvn->paths->fetch_repos($path); + $relpath = $viewsvn->paths->fetch_path($path); +} /*=====================================================================*\ || ################################################################### diff --git a/index.php b/index.php index 54970fb..31e235a 100644 --- a/index.php +++ b/index.php @@ -10,6 +10,8 @@ || ################################################################### || \*=====================================================================*/ +define('PATH_OVERRIDE', 1); + require_once('./global.php'); echo '