[TYPO3-core] RFC: Feature: #0016183: Edit TypoScript file content in t3editor

Fabrizio Branca news at _REMOVETHIS_fabrizio-branca.de
Mon Nov 8 09:37:41 CET 2010


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


More information about the TYPO3-team-core mailing list