Skip to content

Commit 93a58d1

Browse files
author
Andreas
committed
included restrict categories, better approach
1 parent 2c4b593 commit 93a58d1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/code/community/JR/CleverCms/Block/Catalog/Navigation.php

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<?php
22

3-
//class JR_CleverCms_Block_Catalog_Navigation extends Mage_Catalog_Block_Navigation
4-
class JR_CleverCms_Block_Catalog_Navigation extends MageParts_RestrictCategories_Block_Catalog_Navigation
3+
if( class_exists('MageParts_RestrictCategories_Block_Catalog_Navigation') ){
4+
class elder extends MageParts_RestrictCategories_Block_Catalog_Navigation {}
5+
}else{
6+
class elder extends Mage_Catalog_Block_Navigation {}
7+
}
8+
9+
class JR_CleverCms_Block_Catalog_Navigation extends elder
510
{
611
const CACHE_TAG = 'catalog_navigation';
712

0 commit comments

Comments
 (0)