[limb-svn] r6820 - in 3.x/examples/macro: . src
svn at limb-project.com
svn at limb-project.com
Mon Mar 3 12:48:50 MSK 2008
Author: serega
Date: 2008-03-03 12:48:50 +0300 (Mon, 03 Mar 2008)
New Revision: 6820
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6820
Modified:
3.x/examples/macro/showtemplate.php
3.x/examples/macro/src/lmbMacroTemplateHighlightHandler.class.php
Log:
-- lmbMacroTemplateHighlightHandler actually does not need the tags dictionary for highlight
Modified: 3.x/examples/macro/showtemplate.php
===================================================================
--- 3.x/examples/macro/showtemplate.php 2008-03-03 09:40:29 UTC (rev 6819)
+++ 3.x/examples/macro/showtemplate.php 2008-03-03 09:48:50 UTC (rev 6820)
@@ -27,12 +27,9 @@
$page = new lmbMacroTemplate('macrofile.html');
-$compiler = $page->createCompiler();
-$tag_dictionary = $compiler->getTagDictionary();
-
$parser = new XML_HTMLSax3();
-$handler = new lmbMacroTemplateHighlightHandler($tag_dictionary);
+$handler = new lmbMacroTemplateHighlightHandler();
$parser->set_object($handler);
Modified: 3.x/examples/macro/src/lmbMacroTemplateHighlightHandler.class.php
===================================================================
--- 3.x/examples/macro/src/lmbMacroTemplateHighlightHandler.class.php 2008-03-03 09:40:29 UTC (rev 6819)
+++ 3.x/examples/macro/src/lmbMacroTemplateHighlightHandler.class.php 2008-03-03 09:48:50 UTC (rev 6820)
@@ -16,13 +16,7 @@
protected $current_tag = '';
protected $self_closing_tag = false;
protected $template_path_history = array();
- protected $tag_dictionary = null;
- function __construct($tag_dictionary)
- {
- $this->tag_dictionary = $tag_dictionary;
- }
-
protected function _writeAttributes($attributes)
{
if(!is_array($attributes))
More information about the limb-svn
mailing list