/** * Determines to include custom or pagegen.php script * returns script-filename if a TypoScript (config) script is defined and should be include instead of pagegen.php * * @return string The relative filepath of "config.pageGenScript" if found and allowed */ function generatePage_whichScript() { if (!$this->TYPO3_CONF_VARS['FE']['noPHPscriptInclude'] && $this->config['config']['pageGenScript']) { return $this->tmpl->getFileName($this->config['config']['pageGenScript']); } }