Commit 458a8114 authored by robertDouglass's avatar robertDouglass

move the js include inside of the conditional to avoid extra loading

parent 50aabd70
......@@ -20,7 +20,6 @@ function memcache_perm() {
*/
function memcache_shutdown() {
global $user, $_memcache_statistics;
drupal_add_js(drupal_get_path('module', 'memcache'). '/memcache.js');
$output = '';
......@@ -33,6 +32,7 @@ function memcache_shutdown() {
}
if (user_access('access memcache statistics')) {
drupal_add_js(drupal_get_path('module', 'memcache'). '/memcache.js');
$stats = array();
foreach ($_memcache_statistics as $stat => $val) {
$stats[] = "<strong>$stat:</strong> ". theme('item_list', $val);
......
Markdown is supported
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