Skip to content

Commit

Permalink
Backward compatibility for old style xml element naming
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmayer committed Dec 30, 2016
1 parent 3502eff commit da14e8e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions libraries/cms/installer/installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,24 @@ public function findManifest()

if (!is_null($manifest))
{
// Backward compatibility for old style xml element naming
if (!isset($manifest->packagename) && isset($manifest->packageName))
{
$manifest->packagename = $manifest->packageName;
}
if (!isset($manifest->libraryname) && isset($manifest->libraryName))
{
$manifest->libraryname = $manifest->libraryName;
}
if (!isset($manifest->authorUrl) && isset($manifest->authorURL))
{
$manifest->authorUrl = $manifest->authorURL;
}
if (!isset($manifest->packagerurl) && isset($manifest->packagerURL))
{
$manifest->packagerurl = $manifest->packagerURL;
}

// If the root method attribute is set to upgrade, allow file overwrite
if ((string) $manifest->attributes()->method == 'upgrade')
{
Expand Down

0 comments on commit da14e8e

Please sign in to comment.