? memcache_requirements_fix.patch Index: memcache_admin/memcache_admin.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/memcache/memcache_admin/Attic/memcache_admin.install,v retrieving revision 1.1.2.2.2.1 diff -u -p -r1.1.2.2.2.1 memcache_admin.install --- memcache_admin/memcache_admin.install 26 Nov 2008 04:41:08 -0000 1.1.2.2.2.1 +++ memcache_admin/memcache_admin.install 5 Nov 2010 17:28:07 -0000 @@ -11,16 +11,18 @@ */ function memcache_admin_requirements($phase) { $requirements = array(); - // Ensure translations don't break at install time. - $t = get_t(); + if ($phase == 'runtime') { + // Ensure translations don't break at install time. + $t = get_t(); - $stats_exists = function_exists('dmemcache_stats'); - $requirements['memcache_admin'] = array( - 'title' => $t('Memcache admin'), - 'value' => $stats_exists ? t('Memcache included') : t('Memcache not included'), - 'severity' => $stats_exists ? REQUIREMENT_OK : REQUIREMENT_ERROR, - 'description' => $stats_exists ? '' : $t('Memcache admin requires that the "cache_inc" $conf variable be set to include either memcache.inc or memcache.db.inc. Please read the !instructions.', array('!instructions' => l($t('installation instructions'), 'http://drupal.org/project/memcache'))), - ); + $stats_exists = function_exists('dmemcache_stats'); + $requirements['memcache_admin'] = array( + 'title' => $t('Memcache admin'), + 'value' => $stats_exists ? t('Memcache included') : t('Memcache not included'), + 'severity' => $stats_exists ? REQUIREMENT_OK : REQUIREMENT_ERROR, + 'description' => $stats_exists ? '' : $t('Memcache admin requires that the "cache_inc" $conf variable be set to include either memcache.inc or memcache.db.inc. Please read the !instructions.', array('!instructions' => l($t('installation instructions'), 'http://drupal.org/project/memcache'))), + ); + } return $requirements; }