mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
[SS-2016-004] FIX Store current page IDs as ints
This commit is contained in:
parent
1f820b0b1c
commit
a24c8260b1
@ -1469,6 +1469,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
||||
* @param int $id
|
||||
*/
|
||||
public function setCurrentPageID($id) {
|
||||
$id = (int)$id;
|
||||
Session::set($this->sessionNamespace() . ".currentPage", $id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user