[aur-dev] [PATCH] Use 'true' instead of 'True' everywhere

Dan McGee dan at archlinux.org
Thu Aug 11 09:45:31 EDT 2011


Signed-off-by: Dan McGee <dan at archlinux.org>
---
 web/html/packages.php    |    6 +++---
 web/lib/pkgfuncs.inc.php |   12 ++++++------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/web/html/packages.php b/web/html/packages.php
index 4a1fa88..16ec45f 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -37,15 +37,15 @@ if (isset($_POST['IDs'])) {
 # Determine what action to do
 $output = "";
 if (current_action("do_Flag")) {
-	$output = pkg_flag($atype, $ids, True);
+	$output = pkg_flag($atype, $ids, true);
 } elseif (current_action("do_UnFlag")) {
 	$output = pkg_flag($atype, $ids, False);
 } elseif (current_action("do_Adopt")) {
-	$output = pkg_adopt($atype, $ids, True);
+	$output = pkg_adopt($atype, $ids, true);
 } elseif (current_action("do_Disown")) {
 	$output = pkg_adopt($atype, $ids, False);
 } elseif (current_action("do_Vote")) {
-	$output = pkg_vote($atype, $ids, True);
+	$output = pkg_vote($atype, $ids, true);
 } elseif (current_action("do_UnVote")) {
 	$output = pkg_vote($atype, $ids, False);
 } elseif (current_action("do_Delete")) {
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 65758c8..4243991 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -614,12 +614,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.");
@@ -722,7 +722,7 @@ function pkg_delete ($atype, $ids, $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.");
@@ -782,7 +782,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.");
@@ -869,7 +869,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;
@@ -887,7 +887,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.
-- 
1.7.6



More information about the aur-dev mailing list