HOR-2689 Removed references to G::LoadClass, Bootstrap::LoadClass and various references to class loading methods and require_once
This commit is contained in:
committed by
davidcallizaya
parent
d72b7aa561
commit
60efcf7ac7
@@ -33,8 +33,6 @@ $response = array();
|
||||
$status = 1;
|
||||
|
||||
try {
|
||||
//Load the variables
|
||||
G::LoadClass("plugin");
|
||||
|
||||
if (!isset($_FILES["form"]["error"]["PLUGIN_FILENAME"]) || $_FILES["form"]["error"]["PLUGIN_FILENAME"] == 1) {
|
||||
$str = "There was an error uploading the file, probably the file size if greater than upload_max_filesize parameter in php.ini, please check this parameter and try again.";
|
||||
@@ -121,37 +119,6 @@ try {
|
||||
$oClass->iPMVersion = 0;
|
||||
}
|
||||
|
||||
//if ($oClass->iPMVersion > 0) {
|
||||
// G::LoadClass("system");
|
||||
// if (System::getVersion() > 0) {
|
||||
// if ($oClass->iPMVersion > System::getVersion()) {
|
||||
// //throw new Exception('This plugin needs version ' . $oClass->iPMVersion . ' or higher of ProcessMaker');
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
/*
|
||||
if (!isset($oClass->aDependences)) {
|
||||
$oClass->aDependences = null;
|
||||
}
|
||||
if (!empty($oClass->aDependences)) {
|
||||
foreach ($oClass->aDependences as $aDependence) {
|
||||
if (file_exists(PATH_PLUGINS . $aDependence['sClassName'] . '.php')) {
|
||||
require_once PATH_PLUGINS . $aDependence['sClassName'] . '.php';
|
||||
if (!$oPluginRegistry->getPluginDetails($aDependence['sClassName'] . '.php')) {
|
||||
throw new Exception('This plugin needs "' . $aDependence['sClassName'] . '" plugin');
|
||||
}
|
||||
} else {
|
||||
throw new Exception('This plugin needs "' . $aDependence['sClassName'] . '" plugin');
|
||||
}
|
||||
}
|
||||
}
|
||||
unset($oClass);
|
||||
if ($fVersionOld > $fVersionNew) {
|
||||
throw new Exception('A recent version of this plugin was already installed.');
|
||||
}
|
||||
*/
|
||||
|
||||
$res = $tar->extract(PATH_PLUGINS);
|
||||
} else {
|
||||
$str = "The file $filename doesn't contain class: $sClassName ";
|
||||
|
||||
Reference in New Issue
Block a user