From 831ff078cda08f6c441f0132d895ce10e04b16f2 Mon Sep 17 00:00:00 2001 From: secretr Date: Wed, 26 Nov 2008 13:28:35 +0000 Subject: [PATCH] killing eURL duplicate checks and bugs --- e107_handlers/e107Url.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/e107_handlers/e107Url.php b/e107_handlers/e107Url.php index 7bbb7470b..39de1eb79 100755 --- a/e107_handlers/e107Url.php +++ b/e107_handlers/e107Url.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/e107Url.php,v $ -| $Revision: 1.5 $ -| $Date: 2008-11-26 11:06:49 $ +| $Revision: 1.6 $ +| $Date: 2008-11-26 13:28:35 $ | $Author: secretr $ +----------------------------------------------------------------------------+ */ @@ -54,14 +54,19 @@ class eURL { global $pref; //FIXME pref handler, $e107->prefs instance - $handlerId = $section . '/' . $urlType; - $handler = 'url_' . $section . '_' . $urlType; $core = false; if (strpos($section, ':') !== false) { list($tmp, $section) = explode(':', $section, 2); $core = ($tmp === 'core'); } + elseif (isset($this->_link_handlers['plugin:'.$section])) + { + return $this->_link_handlers['plugin:'.$section]; + } + + $handlerId = $section . '/' . $urlType; + $handler = 'url_' . $section . '_' . $urlType; // Check to see if custom code is active and exists if (varsettrue($pref['url_config'][$section]))