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:
@@ -130,11 +130,7 @@ class webEntryProxy extends HttpProxyController
|
||||
|
||||
//return $params;
|
||||
|
||||
if (file_exists ( PATH_METHODS . 'login/version-pmos.php' )) {
|
||||
include_once (PATH_METHODS . 'login/version-pmos.php');
|
||||
} else {
|
||||
define ( 'PM_VERSION', 'Dev.' );
|
||||
}
|
||||
G::LoadClass("system");
|
||||
|
||||
$pathProcess = PATH_DATA_SITE . 'public' . PATH_SEP . $sPRO_UID . PATH_SEP;
|
||||
G::mk_dir ( $pathProcess, 0777 );
|
||||
@@ -193,7 +189,7 @@ class webEntryProxy extends HttpProxyController
|
||||
$template->assign ( 'dynaform', $dynTitle );
|
||||
$template->assign ( 'timestamp', date ( 'l jS \of F Y h:i:s A' ) );
|
||||
$template->assign ( 'ws', SYS_SYS );
|
||||
$template->assign ( 'version', PM_VERSION );
|
||||
$template->assign ( 'version', System::getVersion() );
|
||||
|
||||
$fileName = $pathProcess . $dynTitle . 'Post.php';
|
||||
file_put_contents ( $fileName, $template->getOutputContent () );
|
||||
@@ -244,4 +240,4 @@ class webEntryProxy extends HttpProxyController
|
||||
$sOutput = $oProcessMap->listNewWebEntry($PRO_UID,$EVN_UID);
|
||||
return $sOutput;
|
||||
}
|
||||
} //End webEntryProxy
|
||||
} //End webEntryProxy
|
||||
|
||||
Reference in New Issue
Block a user