Skip to content

Commit

Permalink
fixed texy.compact.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 29, 2008
1 parent e7c2aa9 commit 2c4b863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions texy/libs/DTD.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/** @version $Revision$ $Date$ */

// @param $mode
// @return array
// @return $dtd

$strict = $mode === Texy::HTML4_STRICT || $mode === Texy::XHTML1_STRICT;

Expand Down Expand Up @@ -474,5 +474,3 @@
$dtd['th'][0] += array('nowrap'=>1,'bgcolor'=>1,'width'=>1,'height'=>1);

// missing: FRAMESET, FRAME, BGSOUND, XMP, ...

return $dtd;
3 changes: 2 additions & 1 deletion texy/texy.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ public function setOutputMode($mode)
}

if (!isset(self::$dtdCache[$mode])) {
self::$dtdCache[$mode] = require dirname(__FILE__) . '/libs/DTD.php';
require dirname(__FILE__) . '/libs/DTD.php';
self::$dtdCache[$mode] = $dtd;
}

$this->mode = $mode;
Expand Down

0 comments on commit 2c4b863

Please sign in to comment.