Skip to content

Commit

Permalink
Merge pull request #2 from Webdongle/Webdongle-admin-media-overridepa…
Browse files Browse the repository at this point in the history
…tch-1

Update controller.php
  • Loading branch information
Webdongle committed Oct 5, 2015
2 parents 6342c50 + a768360 commit eabbf50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions administrator/components/com_media/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ public function display($cachable = false, $urlparams = false)
$vType = $document->getType();

// Get/Create the view
$view = $this->getView($vName, $vType);
$view->addTemplatePath(JPATH_COMPONENT_ADMINISTRATOR . '/views/' . strtolower($vName) . '/tmpl');
$view = $this->getView($vName, $vType, '', array('base_path' => JPATH_COMPONENT_ADMINISTRATOR));

// Get/Create the model
if ($model = $this->getModel($mName))
Expand Down

0 comments on commit eabbf50

Please sign in to comment.