diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-06-25 06:05:44 +0200 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-06-25 06:05:44 +0200 |
commit | 610733eafd62e14a7293151fb735bac1f3d55590 (patch) | |
tree | 0811f9b6132789c5cfa1395286f6ba591690eb2c /web/html | |
parent | 928945bd5141c2f97cfc78ddb305547bf3d9246e (diff) | |
download | aur-4329058a4fd5de7da58e04ae3d86e623bccfaafc.tar.gz aur-4329058a4fd5de7da58e04ae3d86e623bccfaafc.tar.xz |
Remove excess whitespace.1.5.6.3
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/index.php | 2 | ||||
-rw-r--r-- | web/html/pkgsubmit.php | 12 | ||||
-rw-r--r-- | web/html/rpc.php | 2 | ||||
-rw-r--r-- | web/html/rss2.php | 1 |
4 files changed, 8 insertions, 9 deletions
diff --git a/web/html/index.php b/web/html/index.php index 87158b9c..3918d958 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -23,7 +23,7 @@ $dbh = db_connect(); <div class="frontpgboxbody"> <p> -<?php +<?php echo __( 'Welcome to the AUR! Please read the %hAUR User Guidelines%h and %hAUR TU Guidelines%h for more information.', '<a href="http://wiki.archlinux.org/index.php/AUR_User_Guidelines">', diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 1db6abcd..a3394af5 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -133,15 +133,15 @@ if ($_COOKIE["AURSID"]): # array parens and any quoting, except in pkgdesc # for pkgdesc, only remove start/end pairs of " or ' if ($lparts[0]=="pkgdesc") { - if ($lparts[1]{0} == '"' && + if ($lparts[1]{0} == '"' && $lparts[1]{strlen($lparts[1])-1} == '"') { $pkgbuild[$lparts[0]] = substr($lparts[1], 1, -1); } - elseif - ($lparts[1]{0} == "'" && + elseif + ($lparts[1]{0} == "'" && $lparts[1]{strlen($lparts[1])-1} == "'") { $pkgbuild[$lparts[0]] = substr($lparts[1], 1, -1); - } else { + } else { $pkgbuild[$lparts[0]] = $lparts[1]; } } else { @@ -158,7 +158,7 @@ if ($_COOKIE["AURSID"]): } # some error checking on PKGBUILD contents - just make sure each - # variable has a value. This does not do any validity checking + # variable has a value. This does not do any validity checking # on the values, or attempts to fix line continuation/wrapping. # if (!$seen_build_function) { @@ -180,7 +180,7 @@ if ($_COOKIE["AURSID"]): # # Check for http:// or other protocol in url - # + # if (!$error) { $parsed_url = parse_url($pkgbuild['url']); if (!$parsed_url['scheme']) { diff --git a/web/html/rpc.php b/web/html/rpc.php index 033cba59..f94d5bc0 100644 --- a/web/html/rpc.php +++ b/web/html/rpc.php @@ -10,7 +10,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'GET' ) { if ( isset($_GET['type']) ) { echo $rpc_o->handle($_GET); } - else { + else { // dump a simple usage output for people to use. // this could be moved to an api doc in the future, or generated from // the AurJSON class directly with phpdoc. For now though, just putting it here. diff --git a/web/html/rss2.php b/web/html/rss2.php index 1f5c50cc..499450ba 100644 --- a/web/html/rss2.php +++ b/web/html/rss2.php @@ -53,4 +53,3 @@ while ($row = mysql_fetch_assoc($result)) { #save it so that useCached() can find it $rss->saveFeed("RSS2.0","xml/newestpkg.xml",true); -?> |