Browse files

# [#29712] Alternate fix for 29646 update changes. Thanks Michael

  • Loading branch information...
1 parent 26f204a commit 1810d8e030762730e06aaddbdaace9e665b0bed3 @mbabker mbabker committed with infograf768 Nov 18, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −0 installation/CHANGELOG
  2. +5 −6 libraries/joomla/updater/update.php
View
1 installation/CHANGELOG
@@ -35,6 +35,7 @@ $ -> Language fix or change
# [#29693] *Position of Article Info. Setting Use Global not saved. Menu Manager: Edit Menu Item and Article Manager: Edit Article. Thanks Volkmar
# [#29710] mod_breadcrumbs: Custom separator is not applied. Thanks Constantin
# [#29682] Adding an icon to the "reply" button in com_messages. Thanks Constantin.
+ # [#29712] Alternate fix for 29646 update changes. Thanks Michael
16-Nov-2012 Jean-Marie Simonet
$+ Adding Uyghur ug-CN installation files
View
11 libraries/joomla/updater/update.php
@@ -199,17 +199,16 @@ public function _startElement($parser, $name, $attrs = array())
// For everything else there's...the default!
default:
$name = strtolower($name);
- if (isset($this->currentUpdate->$name))
+
+ if (!isset($this->currentUpdate->$name))
{
- $this->currentUpdate->$name->_data = '';
+ $this->currentUpdate->$name = new stdClass();
}
+ $this->currentUpdate->$name->_data = '';
+
foreach ($attrs as $key => $data)
{
$key = strtolower($key);
- if (!isset($this->currentUpdate->$name))
- {
- $this->currentUpdate->$name = new stdClass();
- }
$this->currentUpdate->$name->$key = $data;
}
break;

0 comments on commit 1810d8e

Please sign in to comment.