Index: typo3/sysext/lowlevel/config/index.php
===================================================================
--- typo3/sysext/lowlevel/config/index.php (revision 4425)
+++ typo3/sysext/lowlevel/config/index.php (working copy)
@@ -234,12 +234,30 @@
// Variable name:
if (t3lib_div::_GP('varname')) {
- $this->content .= '
- ' . $GLOBALS['LANG']->getLL('variable', true) . '
-
- ' . $GLOBALS['LANG']->getLL('copyPaste', true) . '
-
- ';
+ $line = t3lib_div::_GP('_') ? t3lib_div::_GP('_') : t3lib_div::_GP('varname');
+ if (t3lib_div::_GP('writetoexttables')) {
+ // change value to $GLOBALS
+ $length = strpos($line, '[');
+ $var = substr($line, 0, $length);
+ $changedLine = '$GLOBALS[\'' . substr($line, 1, $length - 1) . '\']' . substr($line, $length);
+ // insert line in extTables.php
+ $extTables = file_get_contents(PATH_typo3conf . TYPO3_extTableDef_script);
+ $extTables = '/is', '', $extTables) . chr(10) . $changedLine . chr(10) . '?>';
+ file_put_contents(PATH_typo3conf . TYPO3_extTableDef_script, $extTables);
+ $this->content .= '' . sprintf($GLOBALS['LANG']->getLL('writeMessage', true), '
', '' . $changedLine . '') . '
+
';
+ } else {
+ $this->content .= '
+ ' . $GLOBALS['LANG']->getLL('variable', true) . '
+
';
+ if (TYPO3_extTableDef_script != '' && ($this->MOD_SETTINGS['function'] == 1 || $this->MOD_SETTINGS['function'] == 4)) {
+ // write only for $TCA and TBE_STYLES if TYPO3_extTableDef_script is defined
+ $this->content .= '
';
+ } else {
+ $this->content .= $GLOBALS['LANG']->getLL('copyPaste', true) . chr(10) . '';
+ }
+
+ }
}
$this->content.= '
';
Index: typo3/sysext/lowlevel/config/locallang.xml
===================================================================
--- typo3/sysext/lowlevel/config/locallang.xml (revision 4425)
+++ typo3/sysext/lowlevel/config/locallang.xml (working copy)
@@ -19,6 +19,9 @@
+
+
+
\ No newline at end of file