diff options
Diffstat (limited to 'src/phorkie/Repository.php')
| -rw-r--r-- | src/phorkie/Repository.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/phorkie/Repository.php b/src/phorkie/Repository.php index d82789d..5c68ee4 100644 --- a/src/phorkie/Repository.php +++ b/src/phorkie/Repository.php @@ -65,6 +65,16 @@ class Repository $this->loadMessage(); } + public function loadById($id) + { + if (!is_numeric($id)) { + throw new Exception_Input('Paste ID not numeric'); + } + $this->id = (int)$id; + $this->loadDirs(); + $this->loadHash(); + } + protected function loadDirs() { $gitDir = $GLOBALS['phorkie']['cfg']['gitdir'] . '/' . $this->id . '.git'; @@ -126,16 +136,6 @@ class Repository } } - public function loadById($id) - { - if (!is_numeric($id)) { - throw new Exception_Input('Paste ID not numeric'); - } - $this->id = (int)$id; - $this->loadDirs(); - $this->loadHash(); - } - public function getVc() { return new \VersionControl_Git($this->gitDir); |
