mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR: removed direct access to $_REQUEST and instead encapulsate access through SS_HTTPRequest
This commit is contained in:
parent
010829f6fb
commit
803adfce42
@ -357,8 +357,11 @@ JS;
|
||||
|
||||
if($id instanceof $treeClass) {
|
||||
return $id;
|
||||
} else if($id && is_numeric($id)) {
|
||||
if(isset($_REQUEST['Version'])) $versionID = (int) $_REQUEST['Version'];
|
||||
}
|
||||
else if($id && is_numeric($id)) {
|
||||
if($this->request->getVar('Version')) {
|
||||
$versionID = (int) $this->request->getVar('Version');
|
||||
}
|
||||
|
||||
if($versionID) {
|
||||
$record = Versioned::get_version($treeClass, $id, $versionID);
|
||||
|
Loading…
Reference in New Issue
Block a user