Hannes Magnusson wrote:
>> http://bugs.php.net/bug.php?id=43191
>>    build.php fails to included necessary theme dependencies
> 
> Richard has already complained over this :)

I was thinking about this. I think the most logical choice would be to
have the theme files include their own dependencies. Patch attached. (we
can also use dirname(__FILE__) trickery to maintain maximum portability,
but I don't think these files will be used outside of PhD)

-- 
 Edward Z. Yang                        GnuPG: 0x869C48DA
 HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
 [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
Index: bightml.php
===================================================================
RCS file: /repository/phd/themes/php/bightml.php,v
retrieving revision 1.4
diff -u -r1.4 bightml.php
--- bightml.php 30 Sep 2007 15:23:40 -0000      1.4
+++ bightml.php 5 Nov 2007 15:00:01 -0000
@@ -1,6 +1,7 @@
 <?php
 /*  $Id: bightml.php,v 1.4 2007/09/30 15:23:40 bjori Exp $ */
 
+require_once 'themes/php/phpdotnet.php';
 class bightml extends phpdotnet implements PhDTheme {
     public function __construct(array $IDs, $filename, $ext = "html") {
         parent::__construct($IDs, $filename, $ext, false);
Index: chunkedhtml.php
===================================================================
RCS file: /repository/phd/themes/php/chunkedhtml.php,v
retrieving revision 1.6
diff -u -r1.6 chunkedhtml.php
--- chunkedhtml.php     21 Oct 2007 11:42:33 -0000      1.6
+++ chunkedhtml.php     5 Nov 2007 14:59:59 -0000
@@ -1,4 +1,7 @@
 <?php
+/*  $Id$ */
+
+require_once 'themes/php/phpweb.php';
 class chunkedhtml extends phpweb {
     private $nav = "";
 
Index: phpweb.php
===================================================================
RCS file: /repository/phd/themes/php/phpweb.php,v
retrieving revision 1.17
diff -u -r1.17 phpweb.php
--- phpweb.php  21 Oct 2007 17:08:44 -0000      1.17
+++ phpweb.php  5 Nov 2007 14:59:56 -0000
@@ -1,6 +1,7 @@
 <?php
 /*  $Id: phpweb.php,v 1.17 2007/10/21 17:08:44 bjori Exp $ */
 
+require_once 'themes/php/phpdotnet.php';
 class phpweb extends phpdotnet implements PhDTheme {
     protected $streams = array();
     protected $writeit = false;

Reply via email to