BUG 0000 Fix an issue importing enterpriseplugins 2.0

Importing plugins 2.0 now working
This commit is contained in:
Hugo Loza
2011-08-10 18:36:58 -04:00
parent cf076703c6
commit dd0653e331

View File

@@ -77,6 +77,7 @@ try {
$res = $tar->extract ( $path );
$sContent = file_get_contents($path . PATH_SEP . $pluginFile);
$sContent = str_ireplace($sAux, $sAux . '_', $sContent);
$sContent = str_ireplace('PATH_PLUGINS', "'".$path."'", $sContent);
$sContent = str_ireplace('$oPluginRegistry =& PMPluginRegistry::getSingleton();', '', $sContent);
$sContent = str_ireplace('$oPluginRegistry->registerPlugin(\'' . $sClassName . '\', __FILE__);', '', $sContent);
//header('Content-Type: text/plain');var_dump($sClassName, $sContent);die;