Skip to content

Commit

Permalink
Simplify Constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Mar 17, 2015
1 parent 5753408 commit 94d0b38
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libraries/cms/ucm/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ class JUcmContent extends JUcmBase
*/
public function __construct(JTableInterface $table = null, $alias = null, JUcmType $type = null)
{
// Setup dependencies.
$input = JFactory::getApplication()->input;
$this->alias = isset($alias) ? $alias : $input->get('option') . '.' . $input->get('view');

$this->type = isset($type) ? $type : $this->getType();
parent::__construct($alias, $type);

if ($table)
{
Expand Down

0 comments on commit 94d0b38

Please sign in to comment.