Skip to content

Commit

Permalink
T3Form: Fix extended form in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
joomlart committed Oct 15, 2013
1 parent c434fbd commit f3cff62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/plg_system_t3/t3.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function onContentPrepareForm($form, $data)
$tmpl = T3::detect() ? T3::detect() : (T3::getDefaultTemplate() ? T3::getDefaultTemplate() : false);

if($tmpl){
$extended = JPATH_ROOT . '/templates/' . $tmpl . '/etc/form/' . $form->getName() . '.xml';
$extended = JPATH_ROOT . '/templates/' . (is_object($tmpl) && !empty($tmpl->tplname) ? $tmpl->tplname : $tmpl) . '/etc/form/' . $form->getName() . '.xml';

if(is_file($extended)){
JFactory::getLanguage()->load('tpl_' . $tmpl, JPATH_SITE);
Expand Down

0 comments on commit f3cff62

Please sign in to comment.