Permalink
Browse files

[FIX] replace DIRECTORY_SEPARATOR with slashes

  • Loading branch information...
1 parent b83f9c8 commit 0be77b1b2377883782faaf82291f18ed8485c451 @phproberto phproberto committed Jul 31, 2012
Showing with 3 additions and 14 deletions.
  1. +3 −14 libraries/joomla/plugin/helper.php
@@ -50,20 +50,9 @@ public static function getLayoutPath($type, $name, $layout = 'default')
}
// Build the template and base path for the layout
- $tPath = JPATH_THEMES . DIRECTORY_SEPARATOR . $template
- . DIRECTORY_SEPARATOR . 'html'
- . DIRECTORY_SEPARATOR . 'plg_' . $type . '_' . $name
- . DIRECTORY_SEPARATOR . $layout . '.php';
- $bPath = JPATH_BASE . DIRECTORY_SEPARATOR . 'plugins'
- . DIRECTORY_SEPARATOR . $type
- . DIRECTORY_SEPARATOR . $name
- . DIRECTORY_SEPARATOR . 'tmpl'
- . DIRECTORY_SEPARATOR . $defaultLayout . '.php';
- $dPath = JPATH_BASE . DIRECTORY_SEPARATOR . 'plugins'
- . DIRECTORY_SEPARATOR . $type
- . DIRECTORY_SEPARATOR . $name
- . DIRECTORY_SEPARATOR . 'tmpl'
- . DIRECTORY_SEPARATOR . 'default.php';
+ $tPath = JPATH_THEMES . '/' . $template . '/html/plg_' . $type . '_' . $name . '/' . $layout . '.php';
+ $bPath = JPATH_BASE . '/plugins/' . $type . '/' . $name . '/tmpl/' . $defaultLayout . '.php';
+ $dPath = JPATH_BASE . '/plugins/' . $type . '/' . $name . '/tmpl/' . 'default.php';
// If the template has a layout override use it
if (file_exists($tPath))

0 comments on commit 0be77b1

Please sign in to comment.