* Added parameter to function in t3lib_install that enables you to write to other...
authorChristian Jul Jensen <christian.jensen@typo3.org>
Thu, 28 Apr 2005 09:57:53 +0000 (09:57 +0000)
committerChristian Jul Jensen <christian.jensen@typo3.org>
Thu, 28 Apr 2005 09:57:53 +0000 (09:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@682 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_install.php

index 5e992d8..05dba49 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-28  Christian Jul Jensen  <julle(at)typo3(dot)org>
+
+       * Added parameter to function in t3lib_install that enables you to write to other localconf's than the canonical.
+
 2005-04-28  Kasper Skårhøj,,,  <kasper@typo3.com>
 
        * Added search in Extension Manager for extensions locally.
index 16b678c..5188690 100755 (executable)
@@ -177,11 +177,12 @@ class t3lib_install {
         * Writes or returns lines from localconf.php
         *
         * @param       array           Array of lines to write back to localconf.php. Possibly
+        * @param string        Absolute path of alternative file to use (Notice: this path is not validated in terms of being inside 'TYPO3 space')
         * @return      mixed           If $inlines is not an array it will return an array with the lines from localconf.php. Otherwise it will return a status string, either "continue" (updated) or "nochange" (not updated)
         * @see setValueInLocalconfFile()
         */
-       function writeToLocalconf_control($inlines='')  {
-               $writeToLocalconf_dat['file'] = PATH_typo3conf.'localconf.php';
+       function writeToLocalconf_control($inlines='',$AbsFullPath='')  {
+               $writeToLocalconf_dat['file'] = $fileFullPath?$fileFullPath:PATH_typo3conf.'localconf.php';
 
                        // Checking write state of localconf.php:
                if (!$this->allowUpdateLocalConf)       {