Allow disabling of path::parse
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 29 Aug 2005 23:51:02 +0000 (23:51 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 29 Aug 2005 23:51:02 +0000 (23:51 +0000)
global.php
index.php

index e30b9c83ff4e3c0340a652df12d9de8b61607d8a..b6ef8b5d7d89badc7d16fd3cc1a4031a59cf338e 100644 (file)
 
 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);
+}
 
 /*=====================================================================*\
 || ###################################################################
index 54970fbb1ff3e889ec31806dcfc8cb47a137b592..31e235a6e09995c2cddacdf4f81b2548366cd549 100644 (file)
--- a/index.php
+++ b/index.php
@@ -10,6 +10,8 @@
 || ################################################################### ||
 \*=====================================================================*/
 
+define('PATH_OVERRIDE', 1);
+
 require_once('./global.php');
 
 echo '<ul>';