Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Joomla CMS #27397 #1514

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions libraries/joomla/installer/adapters/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,15 @@ public function discover()
continue;
}
$manifest_details = JInstaller::parseXMLInstallFile(JPATH_SITE . "/templates/$template/templateDetails.xml");

if ($template != $manifest_details['name'])
{
JError::raiseWarning(100, JText::_('JLIB_INSTALLER_ERROR_TPL_DISCOVER_NAMES_DIFFERENT'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use JError in the platform anymore, instead use the JLog workaround. (There are a number of examples for this)


continue;
// Ignore if directory name is different than the templateDetails.xml <name> tag
}

$extension = JTable::getInstance('extension');
$extension->set('type', 'template');
$extension->set('client_id', $site_info->id);
Expand Down