BUG 5978 Add getVersion to System class and use it instead of PM_VERSION
Instead of every page defining it's own PM_VERSION interpretation, there is now a single getVersion function in the System class to always get the right version.
This commit is contained in:
@@ -54,14 +54,7 @@ switch ($RBAC->userCanAccess('PM_SETUP'))
|
||||
break;
|
||||
}
|
||||
|
||||
//get the current process
|
||||
if (file_exists(PATH_METHODS . 'login/version-pmos.php'))
|
||||
{
|
||||
include('version-pmos.php');
|
||||
}
|
||||
else {
|
||||
define('PM_VERSION', '1.8.320');
|
||||
}
|
||||
G::LoadClass("system");
|
||||
|
||||
$id = strip_tags ( str_replace ( ' ', '_', trim ($_POST['form']['NAME']) ) );
|
||||
$desc = $_POST['form']['DESCRIPTION'];
|
||||
@@ -99,4 +92,4 @@ switch ($RBAC->userCanAccess('PM_SETUP'))
|
||||
PATH_HTML . 'skins' . PATH_SEP . $id . PATH_SEP . 'images'. PATH_SEP
|
||||
);
|
||||
|
||||
G::Header ( 'Location: ../../' . $id . '/setup/skinsList' );
|
||||
G::Header ( 'Location: ../../' . $id . '/setup/skinsList' );
|
||||
|
||||
Reference in New Issue
Block a user