Skip to content

Commit

Permalink
fix previrew
Browse files Browse the repository at this point in the history
  • Loading branch information
Anu1601CS committed May 9, 2018
1 parent 9f82859 commit 5b3768c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PreviewModel extends ItemModel
public function getItem()
{
/** @var \Joomla\CMS\Table\ContentHistory $table */
$table = $this->getTable('Contenthistory');
$table = $this->getTable('ContentHistory');
$versionId = \JFactory::getApplication()->input->getInt('version_id');

if (!$table->load($versionId))
Expand All @@ -41,7 +41,7 @@ public function getItem()

// Get the content type's record so we can check ACL
/** @var \Joomla\CMS\Table\ContentType $contentTypeTable */
$contentTypeTable = $this->getTable('Contenttype');
$contentTypeTable = $this->getTable('ContentType');

if (!$contentTypeTable->load($table->ucm_type_id))
{
Expand Down Expand Up @@ -108,7 +108,7 @@ public function getItem()
*
* @since 3.2
*/
public function getTable($type = 'Contenthistory', $prefix = 'Joomla\\CMS\\Table\\', $config = array())
public function getTable($type = 'ContentHistory', $prefix = 'Joomla\\CMS\\Table\\', $config = array())
{
return Table::getInstance($type, $prefix, $config);
}
Expand All @@ -132,7 +132,7 @@ protected function canEdit($record)
$typeAlias = \JFactory::getApplication()->input->get('type_alias');

/** @var \Joomla\CMS\Table\ContentType $contentTypeTable */
$contentTypeTable = $this->getTable('Contenttype');
$contentTypeTable = $this->getTable('ContentType');

if ($contentTypeTable->getTypeId($typeAlias) == $record->ucm_type_id)
{
Expand Down

0 comments on commit 5b3768c

Please sign in to comment.