Skip to content

Commit

Permalink
Merge pull request joomla#13422 from Harmageddon/jpath_administrator
Browse files Browse the repository at this point in the history
Use JPATH_ADMINISTRATOR instead of JPATH_ROOT/administrator.
  • Loading branch information
wilsonge authored Dec 30, 2016
2 parents 0bb6c5c + 31bbb1e commit 7765af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ protected function getSha1Hash()
$typeId = JFactory::getApplication()->input->getInteger('type_id', 0);
$typeTable->load($typeId);
$typeAliasArray = explode('.', $typeTable->type_alias);
JTable::addIncludePath(JPATH_ROOT . '/administrator/components/' . $typeAliasArray[0] . '/tables');
JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/' . $typeAliasArray[0] . '/tables');
$contentTable = $typeTable->getContentTable();
$keyValue = JFactory::getApplication()->input->getInteger('item_id', 0);

Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_menus/models/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ protected function preprocessForm(JForm $form, $data, $group = 'content')
else
{
// We don't have a component. Load the form XML to get the help path
$xmlFile = JPath::find(JPATH_ROOT . '/administrator/components/com_menus/models/forms', 'item_' . $type . '.xml');
$xmlFile = JPath::find(JPATH_ADMINISTRATOR . '/components/com_menus/models/forms', 'item_' . $type . '.xml');

// Attempt to load the xml file.
if ($xmlFile && !$xml = simplexml_load_file($xmlFile))
Expand Down

0 comments on commit 7765af7

Please sign in to comment.