PM-1066 "Al actualizar PM 2.5.2.3 a 2.8 no se puede crear..." SOLVED
Issue:
- PM-1066: Al actualizar PM 2.5.2.3 a 2.8 no se puede crear dashlets del advanced dashboard
- PM-998: Review Batch routing en Enterprise Trial
Cause:
Este problema es a causa de que cada plugin enterprise requiere
que este cargado la clase "enterprisePlugin"
Solution:
Se ha agregado un "require_once" para cargar clase "enterprisePlugin"
This commit is contained in:
@@ -1150,19 +1150,17 @@ class PMPluginRegistry
|
|||||||
public function setupPlugins ()
|
public function setupPlugins ()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
require_once(PATH_CORE . "methods" . PATH_SEP . "enterprise" . PATH_SEP . "enterprise.php");
|
||||||
|
require_once("class.serverConfiguration.php");
|
||||||
|
|
||||||
$iPlugins = 0;
|
$iPlugins = 0;
|
||||||
require_once ( 'class.serverConfiguration.php' );
|
|
||||||
$oServerConf = & serverConf::getSingleton();
|
$oServerConf = & serverConf::getSingleton();
|
||||||
$oServerConf->addPlugin( SYS_SYS, $this->_aPluginDetails );
|
$oServerConf->addPlugin( SYS_SYS, $this->_aPluginDetails );
|
||||||
foreach ($this->_aPluginDetails as $namespace => $detail) {
|
foreach ($this->_aPluginDetails as $namespace => $detail) {
|
||||||
if (isset( $detail->enabled ) && $detail->enabled) {
|
if (isset( $detail->enabled ) && $detail->enabled) {
|
||||||
if (! empty( $detail->sFilename ) && file_exists( $detail->sFilename )) {
|
if (! empty( $detail->sFilename ) && file_exists( $detail->sFilename )) {
|
||||||
if (strpos( $detail->sFilename, PATH_SEP ) !== false) {
|
$arrayFileInfo = pathinfo($detail->sFilename);
|
||||||
$aux = explode( PATH_SEP, $detail->sFilename );
|
$sFilename = (($detail->sNamespace == "enterprise")? PATH_CORE. "methods" . PATH_SEP . "enterprise" . PATH_SEP : PATH_PLUGINS) . $arrayFileInfo["basename"];
|
||||||
} else {
|
|
||||||
$aux = explode( chr( 92 ), $detail->sFilename );
|
|
||||||
}
|
|
||||||
$sFilename = (($detail->sNamespace == 'enterprise') ? PATH_CORE. 'methods' . PATH_SEP . 'enterprise' . PATH_SEP : PATH_PLUGINS) . $aux[count( $aux ) - 1];
|
|
||||||
if (! file_exists( $sFilename )) {
|
if (! file_exists( $sFilename )) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1186,7 +1184,6 @@ class PMPluginRegistry
|
|||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user