We no longer use the term [unsupported] to refer to the "repository" of
AUR packages. Update texts and variable names accordingly.

Fixes FS#45381.

Signed-off-by: Lukas Fleischer <[email protected]>
---
 web/html/home.php                          | 2 +-
 web/lib/stats.inc.php                      | 5 ++---
 web/template/cgit/footer.html              | 2 +-
 web/template/footer.php                    | 2 +-
 web/template/stats/general_stats_table.php | 2 +-
 web/template/stats/user_table.php          | 4 ++--
 6 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/web/html/home.php b/web/html/home.php
index 3252876..23f37fe 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -39,7 +39,7 @@ html_header( __("Home") );
                        </p>
                        <p class="important">
                        <?= __('DISCLAIMER') ?>:
-                       <?= __('Unsupported packages are user produced content. 
Any use of the provided files is at your own risk.'); ?>
+                       <?= __('AUR packages are user produced content. Any use 
of the provided files is at your own risk.'); ?>
                        </p>
                        <p class="readmore"><a 
href="https://wiki.archlinux.org/index.php/AUR";><?= __('Learn more...') 
?></a></p>
                </div>
diff --git a/web/lib/stats.inc.php b/web/lib/stats.inc.php
index 203be0a..5a24591 100644
--- a/web/lib/stats.inc.php
+++ b/web/lib/stats.inc.php
@@ -39,8 +39,7 @@ function user_table($userid) {
        $base_q.= "WHERE MaintainerUID = " . $userid . " ";
        $base_q.= "AND PackagerUID IS NOT NULL";
 
-       $maintainer_unsupported_count = db_cache_value($base_q,
-               'user_unsupported_count:' . $userid);
+       $user_pkg_count = db_cache_value($base_q, 'user_pkg_count:' . $userid);
 
        $q = "SELECT COUNT(*) FROM PackageBases ";
        $q.= "WHERE OutOfDateTS IS NOT NULL ";
@@ -60,7 +59,7 @@ function user_table($userid) {
 function general_stats_table() {
        # AUR statistics
        $q = "SELECT COUNT(*) FROM PackageBases WHERE PackagerUID IS NOT NULL";
-       $unsupported_count = db_cache_value($q, 'unsupported_count');
+       $pkg_count = db_cache_value($q, 'pkg_count');
 
        $q = "SELECT COUNT(*) FROM PackageBases ";
        $q.= "WHERE MaintainerUID IS NULL ";
diff --git a/web/template/cgit/footer.html b/web/template/cgit/footer.html
index 80481d9..36e0f1b 100644
--- a/web/template/cgit/footer.html
+++ b/web/template/cgit/footer.html
@@ -1,6 +1,6 @@
 <div id="footer">
        <p>
                Copyright &copy; 2004-2014 aurweb Development Team &ndash;
-               <strong>Unsupported packages are user produced content. Any use 
of the provided files is at your own risk.</strong>
+               <strong>AUR packages are user produced content. Any use of the 
provided files is at your own risk.</strong>
        </p>
 </div>
diff --git a/web/template/footer.php b/web/template/footer.php
index 068cc06..1b3c936 100644
--- a/web/template/footer.php
+++ b/web/template/footer.php
@@ -6,7 +6,7 @@
                                <p>aurweb <a 
href="https://projects.archlinux.org/aurweb.git/log/?h=<?= 
htmlspecialchars($ver, ENT_QUOTES) ?>"><?= htmlspecialchars($ver) ?></a></p>
                                <?php endif; ?>
                                <p>Copyright &copy; 2004-<?= date("Y") ?> 
aurweb Development Team.</p>
-                               <p><?= __('Unsupported packages are user 
produced content. Any use of the provided files is at your own risk.') ?></p>
+                               <p><?= __('AUR packages are user produced 
content. Any use of the provided files is at your own risk.') ?></p>
                        </div>
                </div>
        </body>
diff --git a/web/template/stats/general_stats_table.php 
b/web/template/stats/general_stats_table.php
index 5b59832..9dcc3aa 100644
--- a/web/template/stats/general_stats_table.php
+++ b/web/template/stats/general_stats_table.php
@@ -3,7 +3,7 @@
 <table>
        <tr>
                <td class="stat-desc"><?= __("Packages"); ?></td>
-               <td><?= $unsupported_count; ?></td>
+               <td><?= $pkg_count; ?></td>
        </tr>
        <tr>
                <td class="stat-desc"><?= __("Orphan Packages"); ?></td>
diff --git a/web/template/stats/user_table.php 
b/web/template/stats/user_table.php
index 284d5b9..e7b0083 100644
--- a/web/template/stats/user_table.php
+++ b/web/template/stats/user_table.php
@@ -8,9 +8,9 @@ $username = username_from_sid($_COOKIE["AURSID"]);
        <tr>
                <td>
                        <a href="<?= get_uri('/packages/'); ?>?SeB=m&amp;K=<?= 
$username; ?>">
-<?= __("Packages in unsupported"); ?></a>
+<?= __("Packages"); ?></a>
                </td>
-               <td><?= $maintainer_unsupported_count; ?></td>
+               <td><?= $user_pkg_count; ?></td>
        </tr>
        <tr>
                <td>
-- 
2.4.6

Reply via email to