mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Issue #1821 - Inconsistent e_CURRENT_PLUGIN value.
This commit is contained in:
@@ -388,7 +388,7 @@ class eDispatcher
|
|||||||
//if($custom) $custom = 'url/'.$custom;
|
//if($custom) $custom = 'url/'.$custom;
|
||||||
if(!defined('e_CURRENT_PLUGIN'))
|
if(!defined('e_CURRENT_PLUGIN'))
|
||||||
{
|
{
|
||||||
define('e_CURRENT_PLUGIN', $module); // TODO Move to a better location.
|
define('e_CURRENT_PLUGIN', rtrim($module,'/')); // TODO Move to a better location.
|
||||||
}
|
}
|
||||||
return $sc ? '{e_PLUGIN}'.$module.'url/'.$custom.'url.php' : e_PLUGIN.$module.'url/'.$custom.'url.php';
|
return $sc ? '{e_PLUGIN}'.$module.'url/'.$custom.'url.php' : e_PLUGIN.$module.'url/'.$custom.'url.php';
|
||||||
break;
|
break;
|
||||||
|
@@ -3893,7 +3893,7 @@ class e107
|
|||||||
{
|
{
|
||||||
$temp = substr($e107Path, strpos($e107Path, '/') +1);
|
$temp = substr($e107Path, strpos($e107Path, '/') +1);
|
||||||
$plugDir = substr($temp, 0, strpos($temp, '/'));
|
$plugDir = substr($temp, 0, strpos($temp, '/'));
|
||||||
define('e_CURRENT_PLUGIN', $plugDir);
|
define('e_CURRENT_PLUGIN', rtrim($plugDir,'/'));
|
||||||
define('e_PLUGIN_DIR', e_PLUGIN.e_CURRENT_PLUGIN.'/');
|
define('e_PLUGIN_DIR', e_PLUGIN.e_CURRENT_PLUGIN.'/');
|
||||||
define('e_PLUGIN_DIR_ABS', e_PLUGIN_ABS.e_CURRENT_PLUGIN.'/');
|
define('e_PLUGIN_DIR_ABS', e_PLUGIN_ABS.e_CURRENT_PLUGIN.'/');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user