Index: branches/5.3.x/units/links/LinkRouter.php =================================================================== diff -u --- branches/5.3.x/units/links/LinkRouter.php (revision 0) +++ branches/5.3.x/units/links/LinkRouter.php (revision 16175) @@ -0,0 +1,40 @@ +<?php +/** +* @version $Id$ +* @package In-Link +* @copyright Copyright (C) 1997 - 2015 Intechnic. All rights reserved. +* @license GNU/GPL +* In-Portal is Open Source software. +* This means that this software may have been modified pursuant +* the GNU General Public License, and as distributed it includes +* or is derivative of works licensed under the GNU General Public License +* or other free or open source software licenses. +* See http://www.in-portal.org/license for copyright notices and details. +*/ + +defined('FULL_PATH') or die('restricted access!'); + +class LinkRouter extends AbstractCategoryItemRouter +{ + + /** + * Returns unit config's prefix, that is associated with this router. + * + * @return string + */ + public function getPrefix() + { + return 'l'; + } + + /** + * Returns weight of this router among other routers. + * + * @return float + */ + public function getWeight() + { + return 101; + } + +} Index: branches/5.3.x/units/links/links_config.php =================================================================== diff -u -r15900 -r16175 --- branches/5.3.x/units/links/links_config.php (.../links_config.php) (revision 15900) +++ branches/5.3.x/units/links/links_config.php (.../links_config.php) (revision 16175) @@ -1,6 +1,6 @@ <?php /** -* @version $Id: links_config.php 15900 2013-07-12 10:37:05Z alex $ +* @version $Id: links_config.php 16175 2015-05-13 19:22:22Z alex $ * @package In-Link * @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved. * @license GNU/GPL @@ -26,9 +26,6 @@ 'CheckSimulatniousEdit' => true, - 'RewritePriority' => 101, - 'RewriteListener' => 'CategoryItemRewrite:RewriteListener', - 'Hooks' => Array ( Array ( 'Mode' => hBEFORE, @@ -430,7 +427,7 @@ LEFT JOIN '.TABLE_PREFIX.'%3$sCategoryItems ON '.TABLE_PREFIX.'%3$sCategoryItems.ItemResourceId = %1$s.ResourceId {PERM_JOIN} LEFT JOIN '.TABLE_PREFIX.'Categories ON '.TABLE_PREFIX.'Categories.CategoryId = '.TABLE_PREFIX.'%3$sCategoryItems.CategoryId - LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 + LEFT JOIN '.TABLE_PREFIX.'%3$sCatalogImages img ON img.ResourceId = %1$s.ResourceId AND img.DefaultImg = 1 LEFT JOIN '.TABLE_PREFIX.'Users u ON %1$s.CreatedById = u.PortalUserId LEFT JOIN '.TABLE_PREFIX.'%3$sLinkCustomData cust ON %1$s.ResourceId = cust.ResourceId', ), @@ -651,4 +648,4 @@ 'RatingDelayValue' => 'link_RatingDelay_Value', 'RatingDelayInterval' => 'link_RatingDelay_Interval', ), -); \ No newline at end of file +); Index: branches/5.3.x/install/cache/class_structure.php =================================================================== diff -u -r16168 -r16175 --- branches/5.3.x/install/cache/class_structure.php (.../class_structure.php) (revision 16168) +++ branches/5.3.x/install/cache/class_structure.php (.../class_structure.php) (revision 16175) @@ -10,6 +10,8 @@ 'InLinkPrerequisites' => '/modules/in-link/install/prerequisites.php', 'InLinkUpgrades' => '/modules/in-link/install/upgrades.php', 'LinkHelper' => '/modules/in-link/units/helpers/link_helper.php', + 'LinkReviewRouter' => '/modules/in-link/units/links/LinkReviewRouter.php', + 'LinkRouter' => '/modules/in-link/units/links/LinkRouter.php', 'LinkTagProcessor' => '/modules/in-link/units/links/link_tag_processor.php', 'LinkValidationEventHandler' => '/modules/in-link/units/link_validation/link_validation_eh.php', 'LinkValidationTagProcessor' => '/modules/in-link/units/link_validation/link_validation_tp.php', @@ -42,6 +44,20 @@ 0 => 'kHelper', ), ), + 'LinkReviewRouter' => array( + 'type' => 1, + 'modifiers' => 0, + 'extends' => array( + 0 => 'AbstractReviewRouter', + ), + ), + 'LinkRouter' => array( + 'type' => 1, + 'modifiers' => 0, + 'extends' => array( + 0 => 'AbstractCategoryItemRouter', + ), + ), 'LinkTagProcessor' => array( 'type' => 1, 'modifiers' => 0, Index: branches/5.3.x/units/links/LinkReviewRouter.php =================================================================== diff -u --- branches/5.3.x/units/links/LinkReviewRouter.php (revision 0) +++ branches/5.3.x/units/links/LinkReviewRouter.php (revision 16175) @@ -0,0 +1,30 @@ +<?php +/** +* @version $Id$ +* @package In-Link +* @copyright Copyright (C) 1997 - 2015 Intechnic. All rights reserved. +* @license GNU/GPL +* In-Portal is Open Source software. +* This means that this software may have been modified pursuant +* the GNU General Public License, and as distributed it includes +* or is derivative of works licensed under the GNU General Public License +* or other free or open source software licenses. +* See http://www.in-portal.org/license for copyright notices and details. +*/ + +defined('FULL_PATH') or die('restricted access!'); + +class LinkReviewRouter extends AbstractReviewRouter +{ + + /** + * Returns unit config's prefix, that is associated with this router. + * + * @return string + */ + public function getPrefix() + { + return 'l-rev'; + } + +}