Changeset 7363
- Timestamp:
- 02/06/08 11:22:42 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/routing/sfPatternRouting.class.php
r6974 r7363 25 25 protected 26 26 $currentRouteName = null, 27 $currentInternalUri = null,27 $currentInternalUri = array(), 28 28 $currentRouteParameters = null, 29 29 $defaultSuffix = '', … … 66 66 * @return string The current internal URI 67 67 */ 68 68 69 public function getCurrentInternalUri($withRouteName = false) 69 70 { … … 73 74 } 74 75 75 if (is_null($this->currentInternalUri)) 76 $typeId = ($withRouteName) ? 0 : 1; 77 78 if (!isset($this->currentInternalUri[$typeId])) 76 79 { 77 80 $parameters = $this->currentRouteParameters; … … 121 124 sort($params); 122 125 123 $this->currentInternalUri = $internalUri.($params ? '?'.implode('&', $params) : '');124 } 125 126 return $this->currentInternalUri ;126 $this->currentInternalUri[$typeId] = $internalUri.($params ? '?'.implode('&', $params) : ''); 127 } 128 129 return $this->currentInternalUri[$typeId]; 127 130 } 128 131 … … 579 582 // we store route name 580 583 $this->currentRouteName = $routeName; 581 $this->currentInternalUri = null;584 $this->currentInternalUri = array(); 582 585 583 586 if ($this->options['logging'])