summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Douglass2007-05-21 18:33:00 (GMT)
committerRobert Douglass2007-05-21 18:33:00 (GMT)
commit458a81144cd74cdefe24115cb6fb3e6f2769f13a (patch)
tree7d3c40534bf20eb4d2a2c25e14fc0ceddb28ea6e
parent50aabd70dc8b97352f9a244d29029cd656dbba79 (diff)
move the js include inside of the conditional to avoid extra loading
-rw-r--r--memcache.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/memcache.module b/memcache.module
index 785fe71..d3307d9 100644
--- a/memcache.module
+++ b/memcache.module
@@ -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);