Skip to content

Commit

Permalink
Fix for allowing template override in Content Plugin. Required due to…
Browse files Browse the repository at this point in the history
… previous depreciation changes of JRequest.
  • Loading branch information
felixkat committed Nov 22, 2012
1 parent fd75ce7 commit fb48efb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/com_fabrik/models/form.php
Expand Up @@ -408,6 +408,7 @@ public function checkAccessFromListSettings()
public function getTmpl()
{
$app = JFactory::getApplication();
$input = $app->input;
$params = $this->getParams();
$item = $this->getForm();
$tmpl = '';
Expand Down Expand Up @@ -442,7 +443,7 @@ public function getTmpl()

// Finally see if the options are overridden by a querystring var
$baseTmpl = $tmpl;
$tmpl = JRequest::getVar('layout', $tmpl);
$tmpl = $input->get('layout', '$tmpl');

// Test it exists - otherwise revert to baseTmpl tmpl
if (!JFolder::exists(JPATH_SITE . '/components/com_fabrik/views/form/tmpl/' . $tmpl))
Expand Down

0 comments on commit fb48efb

Please sign in to comment.