Revision 242
Added by stefan about 19 years ago
functions.php | ||
---|---|---|
405 | 405 |
// Function to work out a page link |
406 | 406 |
if(!function_exists('page_link')) { |
407 | 407 |
function page_link($link) { |
408 |
// Check for :// in the link (used in URL's) as well as mailto: |
|
409 |
if(strstr($link, '://') == '' AND substr($link, 0, 7) != 'mailto:') { |
|
410 |
return WB_URL.PAGES_DIRECTORY.$link.PAGE_EXTENSION; |
|
411 |
} else { |
|
412 |
return $link; |
|
413 |
} |
|
408 |
global $admin; |
|
409 |
return $admin->page_link($link); |
|
414 | 410 |
} |
415 | 411 |
} |
416 | 412 |
|
Also available in: Unified diff
Moved page_link function to class wb and changed page_link() in functions.php to use the wb class method