commit ff9b2e4bc96d0a0f73e8a76fe2cc800b8c24ca8b parent 5e57a0e92360ea20efda9c399480e5c043ceb552 Author: dankert <devnull@localhost> Date: Tue, 15 Feb 2011 21:36:08 +0100 Ordner im Sitzungsverlauf speichern. Diffstat:
action/FolderAction.class.php | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/action/FolderAction.class.php b/action/FolderAction.class.php @@ -36,6 +36,15 @@ class FolderAction extends ObjectAction $this->folder = new Folder( $this->getRequestId() ); $this->folder->load(); Session::setObject( $this->folder ); + + $history = Session::get('history'); + if ( !is_array($history) ) + $history = array(); + unset($history[$this->getRequestId()]); + if ( count($history) > 20 ) + array_shift($history); + $history[ $this->getRequestId() ] = $this->getRequestId(); + Session::set('history',$history); } else {