Bug #20027 » 0010452.patch

Administrator Admin, 2009-02-16 14:52

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
757 757
	function checkAlternativeIdMethods()	{
758 758
		$this->siteScript = t3lib_div::getIndpEnv('TYPO3_SITE_SCRIPT');
759 759

  
760
			// If PATH_INFO
761
		if (t3lib_div::getIndpEnv('PATH_INFO'))	{		// If pathinfo contains stuff...
762
			$parts=t3lib_div::trimExplode('/',t3lib_div::getIndpEnv('PATH_INFO'),1);
763
			$parts[]='html';
764
			$pCount = count($parts);
765
			if ($pCount>2)	{
766
				$this->type = intval($parts[$pCount-2]);
767
				$this->id = $parts[$pCount-3];
768
			} else {
769
				$this->type = 0;
770
				$this->id = $parts[0];
771
			}
772
			$this->absRefPrefix_force=1;
773
		}
774

  
775 760
			// Call post processing function for custom URL methods.
776 761
		if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']))	{
777 762
			$_params = array('pObj' => &$this);
typo3/sysext/simulatestatic/class.tx_simulatestatic.php (Arbeitskopie)
212 212
				}
213 213
			}
214 214
		}
215

  
216
		// If PATH_INFO is defined as simulateStaticDocuments mode and has information:
217
		if ($this->conf['mode'] === 'PATH_INFO' && t3lib_div::getIndpEnv('PATH_INFO')) {
218
			$parts = t3lib_div::trimExplode('/', t3lib_div::getIndpEnv('PATH_INFO'), true);
219
			$pCount = count($parts);
220
			if ($pCount > 1) {
221
				$parentObject->type = intval($parts[$pCount-1]);
222
				$parentObject->id = $parts[$pCount-2];
223
			} else {
224
				$parentObject->type = 0;
225
				$parentObject->id = $parts[0];
226
			}
227
			$parentObject->absRefPrefix_force = 1;
228
		}
215 229
	}
216 230

  
217 231

  
(1-1/2)