diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 03:43:01 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 03:43:01 -0400 |
| commit | 18516ff8289cc4e0c147f185d29824643b1f960d (patch) | |
| tree | 2cb88dc8e7f7f3c1b9e2dd5bb25a5a26d0ba5361 | |
| parent | 51efd817c8e82a498dbdd603d1194a0dd43f7192 (diff) | |
Rename $config['url_ads'] to $config['link_prefix']
| -rw-r--r-- | inc/config.php | 6 | ||||
| -rw-r--r-- | inc/functions.php | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/inc/config.php b/inc/config.php index cf55d149..35b31b86 100644 --- a/inc/config.php +++ b/inc/config.php @@ -335,10 +335,8 @@ $config['auto_unicode'] = true; // Whether to turn URLs into functional links $config['markup_urls'] = true; - $config['url_ads'] = ''; - // Use it if you want to add something before URL - //for example hide referrer 'http://www.nullrefer.com/?' 'http://anonym.to/?' - //or add some sort of ads + // Optional URL prefix for links (eg. "http://anonym.to/?") + $config['link_prefix'] = ''; // Wordfilters are used to automatically replace certain words/phrases with something else. diff --git a/inc/functions.php b/inc/functions.php index 5d3a5757..a261e350 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1385,7 +1385,7 @@ function markup_url($matches) { $markup_urls[] = $url; - return '<a target="_blank" rel="nofollow" href="'. $config['url_ads'] . $url . '">' . $url . '</a>' . $after; + return '<a target="_blank" rel="nofollow" href="'. $config['link_prefix'] . $url . '">' . $url . '</a>' . $after; } function unicodify($body) { |
