summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-12 23:58:25 -0800
committerEvan Prodromou <evan@status.net>2010-01-12 23:58:25 -0800
commit155e4ef4f32413452acf1b0bc6486d85bfc71cc0 (patch)
tree66cf0641980fc4eda8995e61e0c9473e82a14686 /lib/util.php
parentcc25d3baf0d503f469f9621c53513370453ad8ee (diff)
remove some debugging statements from util.php
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/util.php b/lib/util.php
index df6bee4d4..9255b9b37 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -191,7 +191,6 @@ function common_ensure_session()
}
}
}
- common_debug("Session ID = " . session_id());
}
// Three kinds of arguments:
@@ -258,7 +257,6 @@ function common_rememberme($user=null)
if (!$user) {
$user = common_current_user();
if (!$user) {
- common_debug('No current user to remember', __FILE__);
return false;
}
}
@@ -276,14 +274,11 @@ function common_rememberme($user=null)
if (!$result) {
common_log_db_error($rm, 'INSERT', __FILE__);
- common_debug('Error adding rememberme record for ' . $user->nickname, __FILE__);
return false;
}
$rm->query('COMMIT');
- common_debug('Inserted rememberme record (' . $rm->code . ', ' . $rm->user_id . '); result = ' . $result . '.', __FILE__);
-
$cookieval = $rm->user_id . ':' . $rm->code;
common_log(LOG_INFO, 'adding rememberme cookie "' . $cookieval . '" for ' . $user->nickname);
@@ -391,8 +386,6 @@ function common_current_user()
$_cur = common_remembered_user();
if ($_cur) {
- common_debug("Got User " . $_cur->nickname);
- common_debug("Faking session on remembered user");
// XXX: Is this necessary?
$_SESSION['userid'] = $_cur->id;
}