function __construct()
 {
     if (getCmsVersion() == CMS_JOOMLA15) {
         $this->fields[] = 'Listing.sectionid AS `Listing.section_id`';
         $this->fields[] = 'Section.id AS `Section.section_id`';
         $this->fields[] = 'Section.title AS `Section.title`';
         $this->fields[] = 'Section.alias AS `Section.slug`';
         $this->fields[] = 'Category.image AS `Listing.category_image`';
         unset($this->fields['cat_params'], $this->joins['ParentCategory']);
     } else {
         unset($this->joins['Section']);
     }
     parent::__construct();
     $this->tag = __t("Listing", true);
     // Used in MyReviews page to differentiate from other component reviews
     // Uncomment line below to show tag in My Reviews page
     //		$this->fields[] = "'{$this->tag }' AS `Listing.tag`";
     // PaidListings integration - when completing review info needs to be triggered here
     if (class_exists('PaidListingsComponent')) {
         PaidListingsComponent::applyBeforeFindListingChanges($this);
     }
     $this->Routes = ClassRegistry::getClass('RoutesHelper');
 }
 function __construct()
 {
     parent::__construct();
     $this->tag = __t("Listing", true);
     // Used in MyReviews page to differentiate from other component reviews
     // Uncomment line below to show tag in My Reviews page
     //		$this->fields[] = "'{$this->tag }' AS `Listing.tag`";
     if (getCmsVersion() == CMS_JOOMLA15) {
         // Add listing, category aliases to fields
         $this->fields[] = 'Listing.alias AS `Listing.slug`';
         $this->fields[] = 'Category.alias AS `Category.slug`';
         $this->fields[] = 'Section.alias AS `Section.slug`';
     } else {
         $this->fields[] = 'Listing.title_alias AS `Listing.slug`';
         $this->fields[] = 'Category.name AS `Category.slug`';
         $this->fields[] = 'Section.name AS `Section.slug`';
     }
     // PaidListings integration - when completing review info needs to be triggered here
     if (class_exists('PaidListingsComponent')) {
         PaidListingsComponent::applyBeforeFindListingChanges($this);
     }
     $this->Routes = RegisterClass::getInstance('RoutesHelper');
 }