summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-11 15:45:31 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-08-11 16:17:09 +0200
commit34fe0bec4cd29d1f8bcdfb34fb810556bfd939b2 (patch)
tree2a026bebcfe112603aab8ac7ef638e1aed575485 /web/lib
parent5d74a994ff3e67bb2d3a3e27828785eb6bda94d9 (diff)
downloadaur-34fe0bec4cd29d1f8bcdfb34fb810556bfd939b2.tar.gz
aur-34fe0bec4cd29d1f8bcdfb34fb810556bfd939b2.tar.xz
Use 'true' instead of 'True' everywhere
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 414a1e34..7dc0ae64 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -617,12 +617,12 @@ function sanitize_ids($ids) {
*
* @param string $atype Account type, output of account_from_sid
* @param array $ids Array of package IDs to flag/unflag
- * @param boolean $action True flags out-of-date, false un-flags. Flags by
+ * @param boolean $action true flags out-of-date, false un-flags. Flags by
* default
*
* @return string Translated success or error messages
*/
-function pkg_flag ($atype, $ids, $action=True, $dbh=NULL) {
+function pkg_flag ($atype, $ids, $action=true, $dbh=NULL) {
if (!$atype) {
if ($action) {
return __("You must be logged in before you can flag packages.");
@@ -754,7 +754,7 @@ function pkg_delete ($atype, $ids, $mergepkgid, $dbh=NULL) {
*
* @return string Translated error or success message
*/
-function pkg_adopt ($atype, $ids, $action=True, $dbh=NULL) {
+function pkg_adopt ($atype, $ids, $action=true, $dbh=NULL) {
if (!$atype) {
if ($action) {
return __("You must be logged in before you can adopt packages.");
@@ -814,7 +814,7 @@ function pkg_adopt ($atype, $ids, $action=True, $dbh=NULL) {
*
* @return string Translated error or success message
*/
-function pkg_vote ($atype, $ids, $action=True, $dbh=NULL) {
+function pkg_vote ($atype, $ids, $action=true, $dbh=NULL) {
if (!$atype) {
if ($action) {
return __("You must be logged in before you can vote for packages.");
@@ -901,7 +901,7 @@ function pkg_vote ($atype, $ids, $action=True, $dbh=NULL) {
* @param array $ids Array of package IDs to toggle, formatted as $package_id
* @return string Translated error or success message
*/
-function pkg_notify ($atype, $ids, $action=True, $dbh=NULL) {
+function pkg_notify ($atype, $ids, $action=true, $dbh=NULL) {
if (!$atype) {
# return __("You must be logged in before you can get notifications on comments.");
return;
@@ -919,7 +919,7 @@ function pkg_notify ($atype, $ids, $action=True, $dbh=NULL) {
$output = "";
- $first = True;
+ $first = true;
# There currently shouldn't be multiple requests here, but the
# format in which it's sent requires this.