33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-11-10 15:21:01 +00:00

Double slash in view lookup paths

This commit is contained in:
Michael Babker 2016-02-20 11:56:58 -05:00
parent f7bd9029d3
commit c46b1be935

View File

@ -54,7 +54,7 @@ class DisplayController extends AbstractController
$paths->insert(JPATH_THEMES . '/' . $this->getApplication()->getTemplate() . '/html/com_patchtester/' . $view, 2); $paths->insert(JPATH_THEMES . '/' . $this->getApplication()->getTemplate() . '/html/com_patchtester/' . $view, 2);
// Add the path for the default layouts // Add the path for the default layouts
$paths->insert(dirname(__DIR__) . '//View/' . ucfirst($view) . '/tmpl', 1); $paths->insert(dirname(__DIR__) . '/View/' . ucfirst($view) . '/tmpl', 1);
// Build the class names for the model and view // Build the class names for the model and view
$viewClass = '\\PatchTester\\View\\' . ucfirst($view) . '\\' . ucfirst($view) . ucfirst($format) . 'View'; $viewClass = '\\PatchTester\\View\\' . ucfirst($view) . '\\' . ucfirst($view) . ucfirst($format) . 'View';