Project

General

Profile

Bug #20404 » 11052_v2.diff

Administrator Admin, 2009-05-08 11:51

View differences:

t3lib/class.t3lib_befunc.php (working copy)
'</a>');
}
// Check for memcached if configured
$memCacheUse = false;
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'])) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'] as $table => $conf) {
if (is_array($conf)) {
foreach ($conf as $key => $value) {
if (!is_array($value) && $value === 't3lib_cache_backend_MemcachedBackend') {
$memCacheUse = true;
break;
}
}
}
}
if ($memCacheUse) {
$memcacheConnect = false;
if (function_exists('memcache_connect')) {
$memcache_obj = @memcache_connect('127.0.0.1', 11211);
if ($memcache_obj != null) {
$memcacheConnect = true;
memcache_close($memcache_obj);
}
}
if (!$memcacheConnect) {
$warnings['memcached'] = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:warning.memcache_not_usable');
}
}
}
// Hook for additional warnings
if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['displayWarningMessages'])) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['displayWarningMessages'] as $classRef) {
typo3/sysext/lang/locallang_core.xml (working copy)
<label index="warning.install_update">This installation is not configured for the TYPO3 version it is running. If you did so intentionally, this message can be safely ignored. If you are unsure, visit the %sUpdate Wizard%s section of the Install Tool to see how TYPO3 would change.</label>
<label index="warning.header">Important Notice!</label>
<label index="warning.backend_reference">The Reference Index table is empty which is likely the result of a recent TYPO3 upgrade. Please go to %sTools&gt;DB Check%s and update the reference index.</label>
<label index="warning.memcache_not_usable">Memcache is configured, but does not work! Probably Memcache is not installed on the server.</label>
<label index="toolbarItems.shortcuts">Shortcuts</label>
<label index="toolbarItems.shortcut">Shortcut</label>
<label index="toolbarItems.shortcutsGroup">Shortcut Group</label>
(1-1/2)