BUG 0000 Fix an issue importing enterpriseplugins 2.0
Importing plugins 2.0 now working
This commit is contained in:
@@ -77,6 +77,7 @@ try {
|
|||||||
$res = $tar->extract ( $path );
|
$res = $tar->extract ( $path );
|
||||||
$sContent = file_get_contents($path . PATH_SEP . $pluginFile);
|
$sContent = file_get_contents($path . PATH_SEP . $pluginFile);
|
||||||
$sContent = str_ireplace($sAux, $sAux . '_', $sContent);
|
$sContent = str_ireplace($sAux, $sAux . '_', $sContent);
|
||||||
|
$sContent = str_ireplace('PATH_PLUGINS', "'".$path."'", $sContent);
|
||||||
$sContent = str_ireplace('$oPluginRegistry =& PMPluginRegistry::getSingleton();', '', $sContent);
|
$sContent = str_ireplace('$oPluginRegistry =& PMPluginRegistry::getSingleton();', '', $sContent);
|
||||||
$sContent = str_ireplace('$oPluginRegistry->registerPlugin(\'' . $sClassName . '\', __FILE__);', '', $sContent);
|
$sContent = str_ireplace('$oPluginRegistry->registerPlugin(\'' . $sClassName . '\', __FILE__);', '', $sContent);
|
||||||
//header('Content-Type: text/plain');var_dump($sClassName, $sContent);die;
|
//header('Content-Type: text/plain');var_dump($sClassName, $sContent);die;
|
||||||
|
|||||||
Reference in New Issue
Block a user