View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
2710 | Composr | core | public | 2016-07-12 22:16 | 2016-07-17 14:42 |
Reporter | Chris Graham | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 2710: Add get_login_url function | ||||
Description | We have a code pattern occurring a few times like... if (has_interesting_post_fields() || (get_page_name() == 'join') || (get_page_name() == 'login') || (get_page_name() == 'lost_password')) { $_this_url = build_url(array('page' => ''), '_SELF', array('keep_session' => 1, 'redirect' => 1)); } else { $_this_url = build_url(array('page' => '_SELF'), '_SELF', array('keep_session' => 1, 'redirect' => 1), true); } This should be replaced with a function call. The actual fallback page should be configurable via an optional override parameter to the function. E.g. the main_member_bar block may fall-back to redirecting to the forum after logging in. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | 0.5 | ||||
Sponsorship open | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2016-07-12 22:16 | Chris Graham | New Issue | |
2016-07-17 14:42 | Chris Graham | Status | Not Assigned => Resolved |
2016-07-17 14:42 | Chris Graham | Resolution | open => fixed |
2016-07-17 14:42 | Chris Graham | Assigned To | => Chris Graham |