summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-23 14:44:28 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-23 14:44:28 -0500
commit7ad2f2a371eae2489330f30306cfcbb204411bae (patch)
tree860c4f8e3749bb180f5d287c6b8e5eb65ccea5f1 /lib
parent04ef1ba8eee7a9e2a565d7b4b747ef607665d562 (diff)
TRUE
More PEAR coding standards global changes. Here, I've changed all instances of TRUE to true and FALSE to false. darcs-hash:20081223194428-84dde-cb1a1e6f679acd68e864545c4d4dd8752d6a6257.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/oauthstore.php8
-rw-r--r--lib/omb.php8
-rw-r--r--lib/util.php8
3 files changed, 12 insertions, 12 deletions
diff --git a/lib/oauthstore.php b/lib/oauthstore.php
index 7ec3ca655..faae82db1 100644
--- a/lib/oauthstore.php
+++ b/lib/oauthstore.php
@@ -59,13 +59,13 @@ class LaconicaOAuthDataStore extends OAuthDataStore {
$n->consumer_key = $consumer->key;
$n->tok = $token->key;
$n->nonce = $nonce;
- if ($n->find(TRUE)) {
- return TRUE;
+ if ($n->find(true)) {
+ return true;
} else {
$n->timestamp = $timestamp;
$n->created = DB_DataObject_Cast::dateTime();
$n->insert();
- return FALSE;
+ return false;
}
}
@@ -99,7 +99,7 @@ class LaconicaOAuthDataStore extends OAuthDataStore {
$rt->consumer_key = $consumer->key;
$rt->tok = $token->key;
$rt->type = 0; # request
- if ($rt->find(TRUE) && $rt->state == 1) { # authorized
+ if ($rt->find(true) && $rt->state == 1) { # authorized
common_debug('request token found.', __FILE__);
$at = new Token();
$at->consumer_key = $consumer->key;
diff --git a/lib/omb.php b/lib/omb.php
index c07bedab5..f2dbef5ba 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -139,7 +139,7 @@ function omb_broadcast_remote_subscribers($notice)
common_log(LOG_DEBUG, 'Posting to ' . $rp->postnoticeurl);
if (omb_post_notice_keys($notice, $rp->postnoticeurl, $rp->token, $rp->secret)) {
common_log(LOG_DEBUG, 'Finished to ' . $rp->postnoticeurl);
- $posted[$rp->postnoticeurl] = TRUE;
+ $posted[$rp->postnoticeurl] = true;
} else {
common_log(LOG_DEBUG, 'Failed posting to ' . $rp->postnoticeurl);
}
@@ -208,7 +208,7 @@ function omb_post_notice_keys($notice, $postnoticeurl, $tk, $secret)
$req->to_postdata(),
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
- common_debug('Got HTTP result "'.print_r($result,TRUE).'"', __FILE__);
+ common_debug('Got HTTP result "'.print_r($result,true).'"', __FILE__);
if ($result->status == 403) { # not authorized, don't send again
common_debug('403 result, deleting subscription', __FILE__);
@@ -241,7 +241,7 @@ function omb_broadcast_profile($profile)
if ($rp) {
if (!$updated[$rp->updateprofileurl]) {
if (omb_update_profile($profile, $rp, $sub)) {
- $updated[$rp->updateprofileurl] = TRUE;
+ $updated[$rp->updateprofileurl] = true;
}
}
}
@@ -293,7 +293,7 @@ function omb_update_profile($profile, $remote_profile, $subscription)
$req->to_postdata(),
array('User-Agent' => 'Laconica/' . LACONICA_VERSION));
- common_debug('Got HTTP result "'.print_r($result,TRUE).'"', __FILE__);
+ common_debug('Got HTTP result "'.print_r($result,true).'"', __FILE__);
if ($result->status == 403) { # not authorized, don't send again
common_debug('403 result, deleting subscription', __FILE__);
diff --git a/lib/util.php b/lib/util.php
index ed73b19e6..32201f2be 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -436,7 +436,7 @@ function common_checkbox($id, $label, $checked=false, $instructions=null, $value
common_element_end('p');
}
-function common_dropdown($id, $label, $content, $instructions=null, $blank_select=FALSE, $selected=null)
+function common_dropdown($id, $label, $content, $instructions=null, $blank_select=false, $selected=null)
{
common_element_start('p');
common_element('label', array('for' => $id), $label);
@@ -1018,7 +1018,7 @@ function common_relative_profile($sender, $nickname, $dt=null)
// XXX: use a join instead of a subquery
$recipient->whereAdd('EXISTS (SELECT subscribed from subscription where subscriber = '.$sender->id.' and subscribed = id)', 'AND');
$recipient->whereAdd('nickname = "' . trim($nickname) . '"', 'AND');
- if ($recipient->find(TRUE)) {
+ if ($recipient->find(true)) {
// XXX: should probably differentiate between profiles with
// the same name by date of most recent update
return $recipient;
@@ -1028,7 +1028,7 @@ function common_relative_profile($sender, $nickname, $dt=null)
// XXX: use a join instead of a subquery
$recipient->whereAdd('EXISTS (SELECT subscriber from subscription where subscribed = '.$sender->id.' and subscriber = id)', 'AND');
$recipient->whereAdd('nickname = "' . trim($nickname) . '"', 'AND');
- if ($recipient->find(TRUE)) {
+ if ($recipient->find(true)) {
// XXX: should probably differentiate between profiles with
// the same name by date of most recent update
return $recipient;
@@ -2258,7 +2258,7 @@ function common_message_form($content, $user, $to)
$mutual_users->free();
unset($mutual_users);
- common_dropdown('to', _('To'), $mutual, null, FALSE, $to->id);
+ common_dropdown('to', _('To'), $mutual, null, false, $to->id);
common_element_start('p');