KingAl wrote:I've just made one bugfix - the mod now checks if 'ADMIN_START' is defined so that when viewing Post Settings through the ACP an admin's personal settings don't override the board's default.
Code: Select all
if($user->data['is_registered'])
Code: Select all
if($user->data['is_registered'] && !defined('ADMIN_START'))
Code: Select all
$config['posts_per_page'] = $user->profile_fields['pf_posts_per_page'];
Code: Select all
$config['posts_per_page'] = ($user->profile_fields['pf_posts_per_page'] > 0 ? (int) $user->profile_fields['pf_posts_per_page'] : $config['posts_per_page']);