| @@ 109-119 (lines=11) @@ | ||
| 106 | ||
| 107 | // Analyse file reference: |
|
| 108 | // Is system: |
|
| 109 | if (GeneralUtility::isFirstPartOfStr($fileRef, PATH_typo3 . 'sysext/')) { |
|
| 110 | $validatedPrefix = PATH_typo3 . 'sysext/'; |
|
| 111 | } elseif (GeneralUtility::isFirstPartOfStr($fileRef, PATH_typo3 . 'ext/')) { |
|
| 112 | // Is global: |
|
| 113 | $validatedPrefix = PATH_typo3 . 'ext/'; |
|
| 114 | } elseif (GeneralUtility::isFirstPartOfStr($fileRef, PATH_typo3conf . 'ext/')) { |
|
| 115 | // Is local: |
|
| 116 | $validatedPrefix = PATH_typo3conf . 'ext/'; |
|
| 117 | } else { |
|
| 118 | $validatedPrefix = ''; |
|
| 119 | } |
|
| 120 | if ($validatedPrefix) { |
|
| 121 | // Divide file reference into extension key, directory (if any) and base name: |
|
| 122 | list($extensionKey, $file_extPath) = explode('/', substr($fileRef, strlen($validatedPrefix)), 2); |
|
| @@ 3354-3364 (lines=11) @@ | ||
| 3351 | ||
| 3352 | // Analyse file reference: |
|
| 3353 | // Is system: |
|
| 3354 | if (self::isFirstPartOfStr($fileRef, PATH_typo3 . 'sysext/')) { |
|
| 3355 | $validatedPrefix = PATH_typo3 . 'sysext/'; |
|
| 3356 | } elseif (self::isFirstPartOfStr($fileRef, PATH_typo3 . 'ext/')) { |
|
| 3357 | // Is global: |
|
| 3358 | $validatedPrefix = PATH_typo3 . 'ext/'; |
|
| 3359 | } elseif (self::isFirstPartOfStr($fileRef, PATH_typo3conf . 'ext/')) { |
|
| 3360 | // Is local: |
|
| 3361 | $validatedPrefix = PATH_typo3conf . 'ext/'; |
|
| 3362 | } else { |
|
| 3363 | $validatedPrefix = ''; |
|
| 3364 | } |
|
| 3365 | if ($validatedPrefix) { |
|
| 3366 | // Divide file reference into extension key, directory (if any) and base name: |
|
| 3367 | list($file_extKey, $file_extPath) = explode('/', substr($fileRef, strlen($validatedPrefix)), 2); |
|