Commit b861bef1 authored by Fabian Galinski's avatar Fabian Galinski 😾
Browse files

[TASK] Removal of an unused function

parent 3f10a613
......@@ -116,43 +116,6 @@ class Typo3Lib {
return GeneralUtility::fixWindowsFilePath(str_replace('//', '/', $file));
}
/**
* writes the localconf file
*
* @throws Exception raised if localconf is empty or cant be backuped
* @param string $addLine line which should be added
* @param string $value value of line
* @return void
*/
public static function writeLocalconf($addLine, $value) {
$localconf = PATH_typo3conf . 'localconf.php';
/** t3lib_install */
require_once(PATH_t3lib . 'class.t3lib_install.php');
// get current content
$lines = file_get_contents($localconf);
if (empty($lines)) {
throw new Exception('localconf is empty...');
}
$lines = explode("\n", str_replace('?>', '', $lines));
/** @var t3lib_install $localConfObj */
$localConfObj = GeneralUtility::makeInstance('t3lib_install');
$localConfObj->updateIdentity = 'LFEditor';
// add information
$localConfObj->setValueInLocalconfFile($lines, $addLine, $value);
// backup localconf
if (!copy($localconf, $localconf . '.bak.php')) {
throw new Exception('localconf couldnt be backuped...');
}
// write localconf
$localConfObj->allowUpdateLocalConf = 1;
$localConfObj->writeToLocalconf_control($lines);
}
/**
* decodes or encodes all values in the given language array to utf-8
*
......
......@@ -36,7 +36,7 @@ class AbstractViewHelper extends AbstractBackendViewHelper {
/**
* Returns an instance of the page renderer
*
* @deprecated Implent the following migration if the extension just needs to support > 7.5.
* @deprecated Implement the following migration if the extension just needs to support > 7.5.
* @return PageRenderer
*/
public function getPageRenderer() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment