Skip to content
This repository has been archived by the owner on Aug 5, 2018. It is now read-only.

Commit

Permalink
Fixed articles listcat page switch not working
Browse files Browse the repository at this point in the history
  • Loading branch information
hajo-p committed Feb 12, 2013
1 parent c6d4ad4 commit 7edb77d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.txt
Expand Up @@ -4,6 +4,7 @@ CHANGELOG
ClanSphere 2011.3 Patch 5 >> 2013-XX-XX
___________________________________________________________

-> Fixed articles listcat page switch not working (hajo)
-> Fixed files download handling for non-existing mirrors (hajo)


Expand Down
4 changes: 3 additions & 1 deletion mods/articles/listcat.php
Expand Up @@ -5,6 +5,9 @@
$cs_lang = cs_translate('articles');

$cs_get = cs_get('id');
if(empty($cs_get['id'])) {
$cs_get['id'] = empty($_REQUEST['where']) ? 0 : (int) $_REQUEST['where'];
}

$start = empty($_REQUEST['start']) ? 0 : $_REQUEST['start'];
$cs_sort[1] = 'articles_headline DESC';
Expand Down Expand Up @@ -38,7 +41,6 @@
$cs_articles[$run]['articles_user'] = cs_user($cs_articles[$run]['users_id'],$cs_articles_user['users_nick'],$cs_articles_user['users_active'],$cs_articles_user['users_delete']);
$cs_articles[$run]['articles_date'] = cs_date('unix',$cs_articles[$run]['articles_time'],1);
$cs_articles[$run]['articles_views'] = cs_secure($cs_articles[$run]['articles_views']) . ' ' . $cs_lang['xtimes'];

}

$data['articles'] = $cs_articles;
Expand Down

0 comments on commit 7edb77d

Please sign in to comment.