Re: svn: /phd/trunk/phpdotnet/phd/ BuildOptionsParser.php Config.php Package/Generic/BigXHTML.php Package/Generic/ChunkedXHTML.php
Package/Generic/XHTML.php

From: Date: Thu, 17 Sep 2009 14:29:21 +0000
Subject: Re: svn: /phd/trunk/phpdotnet/phd/ BuildOptionsParser.php Config.php Package/Generic/BigXHTML.php Package/Generic/ChunkedXHTML.php
Package/Generic/XHTML.php
References: 1  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4940@lists.php.net to get a copy of this message
2009/9/17 Moacir de Oliveira Miranda Júnior <moacir@php.net>: > --- phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php        2009-09-17 13:18:06 UTC > (rev 288406) > +++ phd/trunk/phpdotnet/phd/Package/Generic/BigXHTML.php        2009-09-17 14:00:21 UTC > (rev 288407) > @@ -36,6 +36,10 @@ > >     public function header() { >         $root = Format::getRootIndex(); > +        $style = ''; > +        foreach ((array)$this->stylesheets as $css) { > +            $style .= "<style type=\"text/css\">\n" . $css . > "\n</style>\n"; > +        } Isn't this just the filename? I think you are missing file_get_contents().... > --- phd/trunk/phpdotnet/phd/Package/Generic/ChunkedXHTML.php    2009-09-17 13:18:06 UTC (rev > 288406) > +++ phd/trunk/phpdotnet/phd/Package/Generic/ChunkedXHTML.php    2009-09-17 14:00:21 UTC (rev > 288407) > @@ -78,6 +78,9 @@ >                     v("Can't create output directory", E_USER_ERROR); >                 } >             } > +            if (Config::css()) { > +                $this->fetchStylesheet(); > +            } >             break; >         case Render::VERBOSE: >                v("Starting %s rendering", $this->getFormatName(), > VERBOSE_FORMAT_RENDERING); > @@ -90,6 +93,11 @@ >         $lang = Config::language(); >         $root = Format::getRootIndex(); > > +        $cssLinks = ''; > +        foreach ((array)$this->stylesheets as $css) { > +            $cssLinks .= "    <link media=\"all\" > rel=\"stylesheet\" type=\"text/css\" > href=\"styles/".$css."\" />\n"; > +        } The content of $cssLinks will always be the same, no matter how many times this method is called.. it should be a local static variable so we don't populate it 8000 times. -Hannes

« previous php.doc.cvs (#4940) next »