Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Renames variable

AuthorDave Jarvis <email>
Date2026-02-23 14:01:02 GMT-0800
Commitb646d86d676039bbfab31c90169c5885f73fdbe4
Parent9819949
Config.php
class Config {
public const SITE_TITLE = "Dave Jarvis' Repositories";
- private const REPOS_SUBDIR = '/repos';
- private const ORDER_FILE = __DIR__ . '/order.txt';
+ private const REPOS_DIR = '/repos';
+ private const ORDER_FILE = '/order.txt';
private const LOG_FILE = '/error.log';
public function createRouter() {
- return new Router(
- $this->getHomeDirectory() . self::REPOS_SUBDIR,
- self::ORDER_FILE
- );
+ $repos = $this->getHomeDirectory() . self::REPOS_DIR;
+
+ return new Router( $repos, $repos . ORDER_FILE );
}
INSTALL.md
1. Edit `${WEBDIR}/${REPO}/Config.php`.
1. Set `SITE_TITLE`.
-1. Set `REPOS_SUBDIR`.
+1. Set `REPOS_DIR`.
1. Save the file.
-1. Edit `${WEBDIR}/${REPO}/order.txt`
+1. Edit `<REPOS_DIR>/order.txt`
1. List repositories in the order they must appear.
1. Hide repositories using a hyphen prefix.
Delta7 lines added, 8 lines removed, 1-line decrease