Revision 872
Added by thorn about 16 years ago
search_modext.php | ||
---|---|---|
191 | 191 |
elseif(substr($page_link_target,0,13)=='#!wb_section_') { |
192 | 192 |
$page_link_target = '#'.substr($page_link_target, 2); |
193 | 193 |
} |
194 |
|
|
195 |
// since wb 2.7.1 the section-anchor is configurable - SEC_ANCHOR holds the anchor name |
|
196 |
if(substr($page_link_target,0,12)=='#wb_section_') { |
|
197 |
if(defined('SEC_ANCHOR') && SEC_ANCHOR!='') { |
|
198 |
$sec_id = substr($page_link_target, 12); |
|
199 |
$page_link_target = '#'.SEC_ANCHOR.$sec_id; |
|
200 |
} else { // section-anchors are disabled |
|
201 |
$page_link_target = ''; |
|
202 |
} |
|
203 |
} |
|
204 |
|
|
194 | 205 |
return $page_link_target; |
195 | 206 |
} |
196 | 207 |
|
Also available in: Unified diff
updated menulink and search to use configureable section-anchor