Merge pull request #126 from marc1706/fixup/stylechanger
[fixup/stylechanger] Use link to controller file
This commit is contained in:
@@ -61,13 +61,13 @@ class portal_stylechanger_module
|
|||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
$style = request_var('style', 0);
|
$style = request_var('style', 0);
|
||||||
if($style)
|
if (!empty($style))
|
||||||
{
|
{
|
||||||
$url = str_replace('style=' . $style, 'style=' . $row['style_id'], append_sid("{$phpbb_root_path}portal.$phpEx"));
|
$url = str_replace('style=' . $style, 'style=' . $row['style_id'], append_sid("{$phpbb_root_path}app.$phpEx", 'controller=portal'));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$url = append_sid("{$phpbb_root_path}portal.$phpEx", 'style=' . $row['style_id']);
|
$url = append_sid("{$phpbb_root_path}app.$phpEx", 'controller=portal&style=' . $row['style_id']);
|
||||||
}
|
}
|
||||||
++$style_count;
|
++$style_count;
|
||||||
$style_select .= '<option value="' . $url . '"' . ($row['style_id'] == $user->style['style_id'] ? ' selected="selected"' : '') . '>' . htmlspecialchars($row['style_name']) . '</option>';
|
$style_select .= '<option value="' . $url . '"' . ($row['style_id'] == $user->style['style_id'] ? ' selected="selected"' : '') . '>' . htmlspecialchars($row['style_name']) . '</option>';
|
||||||
|
|||||||
Reference in New Issue
Block a user