File: 0003-Adpapt-to-actual-templates-path.patch

package info (click to toggle)
phpdox 0.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,476 kB
  • sloc: xml: 66,377; php: 9,049; makefile: 18
file content (22 lines) | stat: -rw-r--r-- 948 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Fri, 8 May 2015 12:21:21 -0400
Subject: Adpapt to actual templates path

Forwarded: not-needed
---
 src/generator/engine/html/HtmlConfig.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/generator/engine/html/HtmlConfig.php b/src/generator/engine/html/HtmlConfig.php
index 6c5cc7e..a368080 100644
--- a/src/generator/engine/html/HtmlConfig.php
+++ b/src/generator/engine/html/HtmlConfig.php
@@ -39,7 +39,7 @@ namespace TheSeer\phpDox\Generator\Engine {
     class HtmlConfig extends \TheSeer\phpDox\BuildConfig {
 
         public function getTemplateDirectory() {
-            $default = $this->getGeneratorConfig()->getProjectConfig()->getHomeDirectory()->getPathname();
+            $default = '/usr/share/php/TheSeer/phpDox';
             $default .= '/templates/html';
             $node = $this->ctx->queryOne('cfg:template');
             if (!$node) {