Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Oliver Eglseder
lfeditor
Commits
b861bef1
Commit
b861bef1
authored
Nov 10, 2015
by
Fabian Galinski
😾
Browse files
[TASK] Removal of an unused function
parent
3f10a613
Changes
2
Hide whitespace changes
Inline
Side-by-side
Classes/Utility/Typo3Lib.php
View file @
b861bef1
...
...
@@ -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
*
...
...
Classes/ViewHelpers/AbstractViewHelper.php
View file @
b861bef1
...
...
@@ -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 Imple
me
nt the following migration if the extension just needs to support > 7.5.
* @return PageRenderer
*/
public
function
getPageRenderer
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment