Go to the source code of this file.
|
if(!function_exists("wfProfileIn")) | if (!function_exists("wfProfileOut")) |
|
| $GLOBALS ["wgContLang"] = new ilMWFakery() |
|
◆ wfUrlProtocols()
if(!defined('UTF8_REPLACEMENT')) wfUrlProtocols |
( |
| ) |
|
Returns a regular expression of url protocols.
- Returns
- string
Definition at line 26 of file class.ilMWParserAdapter.php.
27{
28 global $wgUrlProtocols;
29
30 $wgUrlProtocols = array(
31 'http://',
32 'https://',
33 'ftp://',
34 'irc://',
35 'gopher://',
36 'telnet://',
37 'nntp://',
38 'worldwind://',
39 'mailto:',
40 'news:'
41 );
42
43
44
45
46 if (is_array($wgUrlProtocols)) {
47 $protocols = array();
48 foreach ($wgUrlProtocols as $protocol) {
49 $protocols[] = preg_quote($protocol, '/');
50 }
51
52 return implode('|', $protocols);
53 } else {
54 return $wgUrlProtocols;
55 }
56}
◆ $GLOBALS
◆ if
if(!function_exists("wfProfileIn")) if(!function_exists("wfProfileOut")) |
( |
! |
function_exists"wfProfileOut" | ) |
|