From 6102759b7cb9fd23f4e7fa5f12137334ff30a410 Mon Sep 17 00:00:00 2001
From: Lukas Fleischer
Date: Fri, 21 Sep 2012 08:57:29 +0200
Subject: Use echo shortcut syntax
Replace all occurrences of "
---
UPGRADING | 2 +
web/html/addvote.php | 20 +++----
web/html/home.php | 16 ++---
web/html/login.php | 24 ++++----
web/html/packages.php | 2 +-
web/html/passreset.php | 18 +++---
web/html/pkgsubmit.php | 18 +++---
web/html/tu.php | 6 +-
web/html/voters.php | 4 +-
web/template/account_details.php | 28 ++++-----
web/template/account_edit_form.php | 58 +++++++++---------
web/template/account_search_results.php | 42 ++++++-------
web/template/actions_form.php | 26 ++++----
web/template/footer.php | 4 +-
web/template/header.php | 30 +++++-----
web/template/pkg_comment_form.php | 12 ++--
web/template/pkg_comments.php | 18 +++---
web/template/pkg_details.php | 96 +++++++++++++++---------------
web/template/pkg_search_form.php | 50 ++++++++--------
web/template/pkg_search_results.php | 80 ++++++++++++-------------
web/template/search_accounts_form.php | 38 ++++++------
web/template/stats/general_stats_table.php | 34 +++++------
web/template/stats/updates_table.php | 8 +--
web/template/stats/user_table.php | 12 ++--
web/template/tu_details.php | 52 ++++++++--------
web/template/tu_list.php | 36 +++++------
26 files changed, 368 insertions(+), 366 deletions(-)
diff --git a/UPGRADING b/UPGRADING
index f1d43f1..1d7d5cf 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -17,6 +17,8 @@ ALTER TABLE Users ADD COLUMN PGPKey VARCHAR(40) NULL DEFAULT NULL;
4. Enable the PDO MySQL extension (pdo_mysql.so) in "php.ini".
+5. Upgrade to PHP>=5.4.0 or enable "short_open_tag" in "php.ini".
+
From 1.9.0 to 1.9.1
-------------------
diff --git a/web/html/addvote.php b/web/html/addvote.php
index d1cd809..5575031 100644
--- a/web/html/addvote.php
+++ b/web/html/addvote.php
@@ -62,29 +62,29 @@ if ($atype == "Trusted User" || $atype == "Developer") {
?>
-
+ = $error ?>
-
+
= __("Submit a proposal to vote on.") ?>
-
diff --git a/web/html/home.php b/web/html/home.php
index 8fecfd4..3050bd1 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -17,7 +17,7 @@ $dbh = db_connect();
-
AUR
+
AUR = __("Home"); ?>
-
-
+ = __('Remember to vote for your favourite packages!'); ?>
+ = __('Some packages may be provided as binaries in [community].'); ?>
-
+
= __('Discussion') ?>
-
+
= __('Bug Reporting') ?>
- :
+ = __('DISCLAIMER') ?> :
-
+ = __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?>
@@ -91,7 +91,7 @@ $dbh = db_connect();
@@ -29,7 +29,7 @@
-
diff --git a/web/template/header.php b/web/template/header.php
index d87ddfe..3179a53 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -1,14 +1,14 @@
-'; ?>
+= ''; ?>
+ xml:lang="= htmlspecialchars($LANG, ENT_QUOTES) ?>" lang="= htmlspecialchars($LANG, ENT_QUOTES) ?>">