Skip to content

Commit 681204e

Browse files
committed
Fix rendering
Command used: php render.php --docbook ../base/.manual.xml --package PHP --format xhtml
1 parent 04b2064 commit 681204e

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

render.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@
4141
// This needs to be moved. Preferably into the PHP package.
4242
if (!$conf) {
4343
Config::init(array(
44-
"lang_dir" => __INSTALLDIR__ . DIRECTORY_SEPARATOR . "phpdotnet" . DIRECTORY_SEPARATOR
45-
. "phd" . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR
46-
. "langs" . DIRECTORY_SEPARATOR,
44+
"lang_dir" => __INSTALLDIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR
45+
. "data" . DIRECTORY_SEPARATOR . "langs" . DIRECTORY_SEPARATOR,
4746
"phpweb_version_filename" => Config::xml_root() . DIRECTORY_SEPARATOR . 'version.xml',
4847
"phpweb_acronym_filename" => Config::xml_root() . DIRECTORY_SEPARATOR . 'entities' . DIRECTORY_SEPARATOR . 'acronyms.xml',
4948
));

src/Package/Generic/XHTML.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use phpdotnet\phd\Reader;
88
use phpdotnet\phd\ReaderKeeper;
99
use phpdotnet\phd\Render;
10+
use function phpdotnet\phd\v;
1011

1112
abstract class XHTML extends AbstractXHTML {
1213
private $myelementmap = array( /* {{{ */

src/Package/PHP/Web.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use phpdotnet\phd\Config;
55
use phpdotnet\phd\Format;
66
use phpdotnet\phd\Render;
7+
use function phpdotnet\phd\v;
78

89
class Web extends XHTML {
910
public function __construct() {

src/Package/PHP/XHTML.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?php
22
namespace phpdotnet\phd\Package\PHP;
33

4+
use phpdotnet\phd\Config;
45
use phpdotnet\phd\Format;
56
use phpdotnet\phd\Package\Generic\XHTML as GenericXHTML;
67
use phpdotnet\phd\Reader;
78
use phpdotnet\phd\Render;
9+
use function phpdotnet\phd\v;
810

911
abstract class XHTML extends GenericXHTML
1012
{

0 commit comments

Comments
 (0)