Browse Source

Rename $config['url_ads'] to $config['link_prefix']

pull/40/head
Michael Foster 11 years ago
parent
commit
18516ff828
  1. 6
      inc/config.php
  2. 2
      inc/functions.php

6
inc/config.php

@ -335,10 +335,8 @@
$config['auto_unicode'] = true; $config['auto_unicode'] = true;
// Whether to turn URLs into functional links // Whether to turn URLs into functional links
$config['markup_urls'] = true; $config['markup_urls'] = true;
$config['url_ads'] = ''; // Optional URL prefix for links (eg. "http://anonym.to/?")
// Use it if you want to add something before URL $config['link_prefix'] = '';
//for example hide referrer 'http://www.nullrefer.com/?' 'http://anonym.to/?'
//or add some sort of ads
// Wordfilters are used to automatically replace certain words/phrases with something else. // Wordfilters are used to automatically replace certain words/phrases with something else.

2
inc/functions.php

@ -1385,7 +1385,7 @@ function markup_url($matches) {
$markup_urls[] = $url; $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) { function unicodify($body) {

Loading…
Cancel
Save