mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use 'true' instead of 'True' everywhere
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
5d74a994ff
commit
34fe0bec4c
2 changed files with 9 additions and 9 deletions
|
@ -37,15 +37,15 @@ if (isset($_POST['IDs'])) {
|
||||||
# Determine what action to do
|
# Determine what action to do
|
||||||
$output = "";
|
$output = "";
|
||||||
if (current_action("do_Flag")) {
|
if (current_action("do_Flag")) {
|
||||||
$output = pkg_flag($atype, $ids, True);
|
$output = pkg_flag($atype, $ids, true);
|
||||||
} elseif (current_action("do_UnFlag")) {
|
} elseif (current_action("do_UnFlag")) {
|
||||||
$output = pkg_flag($atype, $ids, False);
|
$output = pkg_flag($atype, $ids, False);
|
||||||
} elseif (current_action("do_Adopt")) {
|
} elseif (current_action("do_Adopt")) {
|
||||||
$output = pkg_adopt($atype, $ids, True);
|
$output = pkg_adopt($atype, $ids, true);
|
||||||
} elseif (current_action("do_Disown")) {
|
} elseif (current_action("do_Disown")) {
|
||||||
$output = pkg_adopt($atype, $ids, False);
|
$output = pkg_adopt($atype, $ids, False);
|
||||||
} elseif (current_action("do_Vote")) {
|
} elseif (current_action("do_Vote")) {
|
||||||
$output = pkg_vote($atype, $ids, True);
|
$output = pkg_vote($atype, $ids, true);
|
||||||
} elseif (current_action("do_UnVote")) {
|
} elseif (current_action("do_UnVote")) {
|
||||||
$output = pkg_vote($atype, $ids, False);
|
$output = pkg_vote($atype, $ids, False);
|
||||||
} elseif (current_action("do_Delete")) {
|
} elseif (current_action("do_Delete")) {
|
||||||
|
|
|
@ -617,12 +617,12 @@ function sanitize_ids($ids) {
|
||||||
*
|
*
|
||||||
* @param string $atype Account type, output of account_from_sid
|
* @param string $atype Account type, output of account_from_sid
|
||||||
* @param array $ids Array of package IDs to flag/unflag
|
* @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
|
* default
|
||||||
*
|
*
|
||||||
* @return string Translated success or error messages
|
* @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 (!$atype) {
|
||||||
if ($action) {
|
if ($action) {
|
||||||
return __("You must be logged in before you can flag packages.");
|
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
|
* @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 (!$atype) {
|
||||||
if ($action) {
|
if ($action) {
|
||||||
return __("You must be logged in before you can adopt packages.");
|
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
|
* @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 (!$atype) {
|
||||||
if ($action) {
|
if ($action) {
|
||||||
return __("You must be logged in before you can vote for packages.");
|
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
|
* @param array $ids Array of package IDs to toggle, formatted as $package_id
|
||||||
* @return string Translated error or success message
|
* @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) {
|
if (!$atype) {
|
||||||
# return __("You must be logged in before you can get notifications on comments.");
|
# return __("You must be logged in before you can get notifications on comments.");
|
||||||
return;
|
return;
|
||||||
|
@ -919,7 +919,7 @@ function pkg_notify ($atype, $ids, $action=True, $dbh=NULL) {
|
||||||
|
|
||||||
$output = "";
|
$output = "";
|
||||||
|
|
||||||
$first = True;
|
$first = true;
|
||||||
|
|
||||||
# There currently shouldn't be multiple requests here, but the
|
# There currently shouldn't be multiple requests here, but the
|
||||||
# format in which it's sent requires this.
|
# format in which it's sent requires this.
|
||||||
|
|
Loading…
Add table
Reference in a new issue