From d2c20b294a38c076f0cf6d1ad1871f854a2549d3 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 29 Aug 2005 23:48:04 +0000 Subject: [PATCH] Moving definitions of common variables to global.php --- blame.php | 4 ---- browse.php | 4 ---- diff.php | 4 ---- global.php | 4 ++++ log.php | 4 ---- view.php | 4 ---- 6 files changed, 4 insertions(+), 20 deletions(-) diff --git a/blame.php b/blame.php index 8f1ac06..53d5645 100644 --- a/blame.php +++ b/blame.php @@ -12,10 +12,6 @@ require_once('./global.php'); -$path = $viewsvn->paths->parse(); -$repos = $viewsvn->paths->fetch_repos($path); -$relpath = $viewsvn->paths->fetch_path($path); - echo $viewsvn->paths->construct_breadcrumb($path, false); echo '
'; diff --git a/browse.php b/browse.php index 1b61fcf..c7c00ee 100644 --- a/browse.php +++ b/browse.php @@ -12,10 +12,6 @@ require_once('./global.php'); -$path = $viewsvn->paths->parse(); -$repos = $viewsvn->paths->fetch_repos($path); -$relpath = $viewsvn->paths->fetch_path($path); - echo $viewsvn->paths->construct_breadcrumb($path); echo '
'; diff --git a/diff.php b/diff.php index fd6f8dd..ad46255 100644 --- a/diff.php +++ b/diff.php @@ -12,10 +12,6 @@ require_once('./global.php'); -$path = $viewsvn->paths->parse(); -$repos = $viewsvn->paths->fetch_repos($path); -$relpath = $viewsvn->paths->fetch_path($path); - echo $viewsvn->paths->construct_breadcrumb($path, false); $revs = $viewsvn->paths->fetch_rev_num(true); diff --git a/global.php b/global.php index b469efc..e30b9c8 100644 --- a/global.php +++ b/global.php @@ -12,6 +12,10 @@ require_once('./includes/init.php'); +$path = $viewsvn->paths->parse(); +$repos = $viewsvn->paths->fetch_repos($path); +$relpath = $viewsvn->paths->fetch_path($path); + /*=====================================================================*\ || ################################################################### || # $HeadURL$ diff --git a/log.php b/log.php index 5cdd2d3..a81313f 100644 --- a/log.php +++ b/log.php @@ -12,10 +12,6 @@ require_once('./global.php'); -$path = $viewsvn->paths->parse(); -$repos = $viewsvn->paths->fetch_repos($path); -$relpath = $viewsvn->paths->fetch_path($path); - echo $viewsvn->paths->construct_breadcrumb($path, false); echo '
'; diff --git a/view.php b/view.php index 0972e7e..48fa1ca 100644 --- a/view.php +++ b/view.php @@ -12,10 +12,6 @@ require_once('./global.php'); -$path = $viewsvn->paths->parse(); -$repos = $viewsvn->paths->fetch_repos($path); -$relpath = $viewsvn->paths->fetch_path($path); - echo $viewsvn->paths->construct_breadcrumb($path, false); echo '
'; -- 2.43.5