| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 34 | public function render() |
||
| 35 | { |
||
| 36 | $pid = (int)GeneralUtility::_GET('id'); |
||
| 37 | |||
| 38 | if (GeneralUtility::compat_version('7.6')) { |
||
| 39 | $parameters = [ |
||
| 40 | 'edit[tx_sfeventmgt_domain_model_event][' . $pid . ']' => 'new', |
||
| 41 | ]; |
||
| 42 | $parameters['returnUrl'] = 'index.php?M=web_SfEventMgtTxSfeventmgtM1&id=' . $pid . $this->getModuleToken(); |
||
| 43 | $url = BackendUtility::getModuleUrl('record_edit', $parameters); |
||
| 44 | } else { |
||
| 45 | $returnUrl = 'mod.php?M=web_SfEventMgtTxSfeventmgtM1&id=' . $pid . $this->getModuleToken(); |
||
| 46 | $url = 'alt_doc.php?edit[tx_sfeventmgt_domain_model_event][' . $pid . |
||
| 47 | ']=new&returnUrl=' . urlencode($returnUrl); |
||
| 48 | } |
||
| 49 | return $url; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |