Skip to content

Commit

Permalink
Fall back to index.php if file not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed May 3, 2016
1 parent defe7aa commit 739d22b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/joomla/document/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,11 @@ protected function _fetchTemplate($params = array())
$template = 'system';
}

if (!file_exists($directory . '/' . $template . '/' . $file))
{
$file = 'index.php';
}

// Load the language file for the template
$lang = JFactory::getLanguage();

Expand Down

0 comments on commit 739d22b

Please sign in to comment.