Commit ad8c5c4c authored by Jigal van Hemert's avatar Jigal van Hemert Committed by Oliver Hader
Browse files

[BUGFIX] Check if TER dump exists before modify time check

The modify time of the extensions.xml.gz file is used to display the last
update of the extension list. Checking if the file exists will prevent a
PHP warning.

Change-Id: Ic8cae6c591f0b6ff955fb01c192df9b17876fe68
Releases: 4.5
Resolves: #37946
Reviewed-on: http://review.typo3.org/21776


Reviewed-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
parent b2597fd4
......@@ -2461,11 +2461,11 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
$dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'];
$timeFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
$modifyDateTime = file_exists(PATH_site . 'typo3temp/extensions.xml.gz') ?
date($dateFormat . ', ' . $timeFormat, filemtime(PATH_site . 'typo3temp/extensions.xml.gz')) :
'-';
$content = sprintf($GLOBALS['LANG']->getLL('note_last_update_new'),
date(
$dateFormat . ', ' . $timeFormat,
filemtime(PATH_site . 'typo3temp/extensions.xml.gz')
)
$modifyDateTime
) . '<br />';
}
......
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