(.*)$/i','
',$matches[0]);
- $oXmlParser = new XmlParser();
+ $oXmlParser = new XeXmlParser();
$xml_doc = $oXmlParser->parse($buff);
$vars = $xml_doc->div->attrs;
@@ -317,7 +317,7 @@ class widgetController extends widget
// Bringing widget cache sequence
preg_match_all('!
![]()
]*)widget=([^\>]*?)\>!is', $content, $matches);
- $oXmlParser = new XmlParser();
+ $oXmlParser = new XeXmlParser();
$cnt = count($matches[1]);
for($i=0;$i<$cnt;$i++)
diff --git a/modules/widget/widget.model.php b/modules/widget/widget.model.php
index 574372627..b3c179e19 100644
--- a/modules/widget/widget.model.php
+++ b/modules/widget/widget.model.php
@@ -137,7 +137,7 @@ class widgetModel extends widget
return $widget_info;
}
// If no cache file exists, parse the xml and then return the variable.
- $oXmlParser = new XmlParser();
+ $oXmlParser = new XeXmlParser();
$tmp_xml_obj = $oXmlParser->loadXmlFile($xml_file);
$xml_obj = $tmp_xml_obj->widget;
if(!$xml_obj) return;
@@ -207,6 +207,7 @@ class widgetModel extends widget
$extra_var_count = count($extra_vars);
$buff .= sprintf('$widget_info->extra_var_count = %d;', $extra_var_count);
+ $buff .= '$widget_info->extra_var = new stdClass;';
for($i=0;$i<$extra_var_count;$i++)
{
unset($var);
@@ -279,7 +280,7 @@ class widgetModel extends widget
return $widgetStyle_info;
}
// If no cache file exists, parse the xml and then return the variable.
- $oXmlParser = new XmlParser();
+ $oXmlParser = new XeXmlParser();
$tmp_xml_obj = $oXmlParser->loadXmlFile($xml_file);
$xml_obj = $tmp_xml_obj->widgetstyle;
if(!$xml_obj) return;
diff --git a/vendor/leafo/lessphp/lessc.inc.php b/vendor/leafo/lessphp/lessc.inc.php
index 2292f219d..a44b3f58d 100644
--- a/vendor/leafo/lessphp/lessc.inc.php
+++ b/vendor/leafo/lessphp/lessc.inc.php
@@ -746,7 +746,7 @@ class lessc {
if ($suffix !== null &&
$subProp[0] == "assign" &&
is_string($subProp[1]) &&
- $subProp[1]{0} != $this->vPrefix)
+ $subProp[1][0] != $this->vPrefix)
{
$subProp[2] = array(
'list', ' ',
@@ -1857,7 +1857,7 @@ class lessc {
$this->pushEnv();
$parser = new lessc_parser($this, __METHOD__);
foreach ($args as $name => $strValue) {
- if ($name{0} != '@') $name = '@'.$name;
+ if ($name[0] != '@') $name = '@'.$name;
$parser->count = 0;
$parser->buffer = (string)$strValue;
if (!$parser->propertyValue($value)) {
@@ -2516,7 +2516,7 @@ class lessc_parser {
$hidden = true;
if (!isset($block->args)) {
foreach ($block->tags as $tag) {
- if (!is_string($tag) || $tag{0} != $this->lessc->mPrefix) {
+ if (!is_string($tag) || $tag[0] != $this->lessc->mPrefix) {
$hidden = false;
break;
}
@@ -2570,7 +2570,7 @@ class lessc_parser {
protected function fixTags($tags) {
// move @ tags out of variable namespace
foreach ($tags as &$tag) {
- if ($tag{0} == $this->lessc->vPrefix)
+ if ($tag[0] == $this->lessc->vPrefix)
$tag[0] = $this->lessc->mPrefix;
}
return $tags;
diff --git a/widgets/content/content.class.php b/widgets/content/content.class.php
index d827e7337..a86e15ffb 100644
--- a/widgets/content/content.class.php
+++ b/widgets/content/content.class.php
@@ -496,7 +496,7 @@ class content extends WidgetHandler
$buff = preg_replace("/<\?xml.*\?>/i", "", $buff);
- $oXmlParser = new XmlParser();
+ $oXmlParser = new XeXmlParser();
$xml_doc = $oXmlParser->parse($buff);
if($xml_doc->rss)
{
diff --git a/widgets/mcontent/mcontent.class.php b/widgets/mcontent/mcontent.class.php
index 896abbb07..e7e788083 100644
--- a/widgets/mcontent/mcontent.class.php
+++ b/widgets/mcontent/mcontent.class.php
@@ -416,7 +416,7 @@ class mcontent extends WidgetHandler
$buff = preg_replace("/<\?xml.*\?>/i", "", $buff);
- $oXmlParser = new XmlParser();
+ $oXmlParser = new XeXmlParser();
$xml_doc = $oXmlParser->parse($buff);
$rss = new stdClass();
if($xml_doc->rss)