Re: Adding Includesupport to IntegratedTemplates
| From: | Martin Jansen | Date: | Mon, 21 Jan 2002 17:18:24 +0000 |
| Subject: | Re: Adding Includesupport to IntegratedTemplates | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4019@lists.php.net to get a copy of this message | ||
On Wed, 9 Jan 2002 15:50:28 +0100, Christian Dickmann wrote:
>I added Includesupport to IT, because I needed it for
>one of my projects.
>Maybe you want to integrate my change into the
>official development version.
>
>I do not know how to use "diff" and my first try resultet
>in a failure.
>
>Here is my change:
>
>Replace
>
>return $content;
>
>with
>
>return preg_replace("#<!-- INCLUDE (.*) -->#ime",
>"\$this->getFile('\\1')",$content);
>
>in pear/HTML/IT.php function getFile()
>around Line 788.
Commited.
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/