Skip to content
Permalink
Browse files

Fix downloads A-Z on non-multi-lang sites

  • Loading branch information...
chrisgraham committed Jul 31, 2019
1 parent 4ef5ffe commit 4e05b3558be526c610d991b62fa516eef2b9075a
Showing with 1 addition and 1 deletion.
  1. +1 −1 site/pages/modules/downloads.php
@@ -556,7 +556,7 @@ public function view_atoz_screen()
// Load up all data
$cats = array();
$rows = $GLOBALS['SITE_DB']->query('SELECT p.*,text_original FROM ' . get_table_prefix() . 'download_downloads p' . $privacy_join . ' WHERE ' . (addon_installed('unvalidated') ? 'validated=1 AND ' : '') . '(' . $sql_select . ')' . $privacy_where . ' ORDER BY text_original ASC', null, null, false, true, array('name' => 'SHORT_TRANS'));
$rows = $GLOBALS['SITE_DB']->query('SELECT p.* FROM ' . get_table_prefix() . 'download_downloads p' . $privacy_join . ' WHERE ' . (addon_installed('unvalidated') ? 'validated=1 AND ' : '') . '(' . $sql_select . ')' . $privacy_where . ' ORDER BY ' . $GLOBALS['SITE_DB']->translate_field_ref('name'), null, null, false, true, array('name' => 'SHORT_TRANS'));
foreach ($rows as $row) {
$download_name = get_translated_text($row['name']);
$letter = strtoupper(substr($download_name, 0, 1));

0 comments on commit 4e05b35

Please sign in to comment.
You can’t perform that action at this time.