[TYPO3-core] RFC: Feature: #0016183: Edit TypoScript file content in t3editor
Fabrizio Branca
news at _REMOVETHIS_fabrizio-branca.de
Tue Nov 9 20:54:57 CET 2010
And here's the patch file...
Bye,
Fabrizio
On 08.11.2010 09:37, Fabrizio Branca wrote:
> One little follow-up issue:
>
> If we change
>
> if·(!is_writable($realFileName))·{
> throw·new·Exception(sprintf('"%s"·is·not·writable.',·$fileName));
> }
>
> to
>
> if·(is_file($realFileName) && !is_writable($realFileName))·{
> throw·new·Exception(sprintf('"%s"·is·not·writable.',·$fileName));
> }
>
> we would be able to simple create those files (even if the don't exist)
> by simply wrapping
>
> ### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/newfiles.ts"> BEGIN:
> ...Content that should go into a newly created file...
> ### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/newfiles.ts"> END:
>
> Currently this is not possible, because the check will throw an
> exception as a non existent file is not writable.
>
> Bye,
>
> Fabrizio
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16183_followup.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101109/cedc5aee/attachment.txt>
More information about the TYPO3-team-core
mailing list