root/branches/99-toolbar/code/administrator/components/com_default/controllers/default.php
| 2488 | 2530 | ||
|---|---|---|---|
32 | //Register command callbacks | 32 | //Register command callbacks |
33 | $this->registerCallback(array('after.save', 'after.delete'), array($this, 'setMessage')); | 33 | $this->registerCallback(array('after.save', 'after.delete'), array($this, 'setMessage')); |
34 | } | 34 | } |
35 | |||
36 | /** | ||
37 | * Set the request information | ||
38 | * | ||
39 | * This function translates 'limitstart' to 'offset' for compatibility with Joomla | ||
40 | * | ||
41 | * @param array An associative array of request information | ||
42 | * @return KControllerBread | ||
43 | */ | ||
44 | public function setRequest(array $request = array()) | ||
45 | { | ||
46 | if(isset($request['limitstart'])) { | ||
47 | $request['offset'] = $request['limitstart']; | ||
48 | } | ||
49 | |||
50 | $this->_request = new KConfig($request); | ||
51 | return $this; | ||
52 | } | ||
35 | 53 | ||
36 | /** | 54 | /** |
37 | * Filter that creates a redirect message based on the action | 55 | * Filter that creates a redirect message based on the action |
Download diff