summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TTemplateManager.php
diff options
context:
space:
mode:
authorGODZilla0480@gmail.com <>2011-08-28 04:43:21 +0000
committerGODZilla0480@gmail.com <>2011-08-28 04:43:21 +0000
commitad5c394d39c35b48b7cfc4384288e53d268d0aab (patch)
tree4d67391ec2eb4bd0d737c0b20f21da4dcdb889c0 /framework/Web/UI/TTemplateManager.php
parent3b9afe7979fb5195445da768ecee2f138ba84005 (diff)
Modifiy TTemplate::parseAttributes to allow definition of "HTML5 Custom Data Attributes (data-*)" e.g Attributes.data-custom-value="foobar"
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r--framework/Web/UI/TTemplateManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php
index f0a8dd47..a5e635da 100644
--- a/framework/Web/UI/TTemplateManager.php
+++ b/framework/Web/UI/TTemplateManager.php
@@ -823,7 +823,7 @@ class TTemplate extends TApplicationComponent implements ITemplate
{
if($str==='')
return array();
- $pattern='/([\w\.]+)\s*=\s*(\'.*?\'|".*?"|<%.*?%>)/msS';
+ $pattern='/([\w\.\-]+)\s*=\s*(\'.*?\'|".*?"|<%.*?%>)/msS';
$attributes=array();
$n=preg_match_all($pattern,$str,$matches,PREG_SET_ORDER|PREG_OFFSET_CAPTURE);
for($i=0;$i<$n;++$i)