View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020694 | mantisbt | customization | public | 2016-03-15 11:26 | 2016-06-12 00:42 |
Reporter | quayzar | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0-rc.1 | ||||
Target Version | 1.3.0-rc.2 | Fixed in Version | 1.3.0-rc.2 | ||
Summary | 0020694: Add configuration for auto-generated www link target | ||||
Description | Currently, $g_html_make_links is a boolean variable, used to control whether Mantis automatically generates links from www URLs. I propose changing this variable from boolean to numeric and defining a constant to represent each of the three possible states: OFF: Does not generate a link. This is equivalent to setting $g_html_make_links as it stands now to OFF. LINK_SAME_WINDOW: Generates a link that opens in the current window. LINK_NEW_WINDOW: Generates a link that opens in a new window. Note: I've already made these changes and created a pull request; I've created this issue for reference. | ||||
Tags | No tags attached. | ||||
MantisBT: master aa91878c 2016-02-24 05:24 Committer: dregad Details Diff |
Add link target options to $g_html_make_links - Replace "magic numbers" with constants defined in constants_inc.php - Update manual and config_defaults_inc.php with revised constants Fixes 0020694 Signed-off-by: Damien Regad <dregad@mantisbt.org> Changes from original submission: - commits squashed; - reworded and reformatted the documentation for the new constants; - referenced the equivalence between LINKS_SAME_WINDOW and ON; - simplify the code in string_insert_hrefs(). |
Affected Issues 0020694 |
|
mod - config_defaults_inc.php | Diff File | ||
mod - core/constant_inc.php | Diff File | ||
mod - core/string_api.php | Diff File | ||
mod - docbook/Admin_Guide/en-US/config/html.xml | Diff File |