Añadi correcciones para translations para plugins.. y arreglo en la clase G
This commit is contained in:
@@ -474,16 +474,25 @@ class headPublisher
|
|||||||
$aux = explode(PATH_SEP, $filename);
|
$aux = explode(PATH_SEP, $filename);
|
||||||
//check if G_PLUGIN_CLASS is defined, because publisher can be called without an environment
|
//check if G_PLUGIN_CLASS is defined, because publisher can be called without an environment
|
||||||
if (count($aux) > 2 && defined('G_PLUGIN_CLASS')) {
|
if (count($aux) > 2 && defined('G_PLUGIN_CLASS')) {
|
||||||
|
$flagPlugin = false;
|
||||||
$keyPlugin = count($aux)-2;
|
$keyPlugin = count($aux)-2;
|
||||||
|
|
||||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||||
if (!($oPluginRegistry->isRegisteredFolder($aux[$keyPlugin]))) {
|
if ($oPluginRegistry->isRegisteredFolder($aux[$keyPlugin])) {
|
||||||
|
$flagPlugin = true;
|
||||||
|
} else {
|
||||||
$keyPlugin --;
|
$keyPlugin --;
|
||||||
|
if ($oPluginRegistry->isRegisteredFolder($aux[$keyPlugin]))) {
|
||||||
|
$flagPlugin = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($flagPlugin) {
|
||||||
array_push($this->extJsLibrary, 'translation.' . trim($aux[$keyPlugin]) . '.' . SYS_LANG);
|
array_push($this->extJsLibrary, 'translation.' . trim($aux[$keyPlugin]) . '.' . SYS_LANG);
|
||||||
$sPath = PATH_PLUGINS;
|
$sPath = PATH_PLUGINS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!$isExternal) {
|
if (!$isExternal) {
|
||||||
$jsFilename = $sPath . $filename . '.js';
|
$jsFilename = $sPath . $filename . '.js';
|
||||||
|
|||||||
Reference in New Issue
Block a user