mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 20:08:49 +00:00
[global]: Proxy class has been introduced, need to fix these as well.
This commit is contained in:
parent
fc2a367dae
commit
265a2c498e
4 changed files with 12 additions and 12 deletions
|
@ -7,12 +7,11 @@
|
|||
* License: 3-clause BSD license
|
||||
*/
|
||||
|
||||
require_once 'mod/proxy.php';
|
||||
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Network\Proxy;
|
||||
|
||||
function impressum_install() {
|
||||
Addon::registerHook('load_config', 'addon/impressum/impressum.php', 'impressum_load_config');
|
||||
|
@ -41,7 +40,8 @@ function obfuscate_email ($s) {
|
|||
return $s;
|
||||
}
|
||||
function impressum_footer($a, &$b) {
|
||||
$text = proxy_parse_html(BBCode::convert(Config::get('impressum','footer_text')));
|
||||
$text = Proxy::proxifyHtml(BBCode::convert(Config::get('impressum','footer_text')));
|
||||
|
||||
if (! $text == '') {
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.$a->get_baseurl().'/addon/impressum/impressum.css" media="all" />';
|
||||
$b .= '<div class="clear"></div>';
|
||||
|
@ -58,8 +58,8 @@ function impressum_show($a,&$b) {
|
|||
$b .= '<h3>'.L10n::t('Impressum').'</h3>';
|
||||
$owner = Config::get('impressum', 'owner');
|
||||
$owner_profile = Config::get('impressum','ownerprofile');
|
||||
$postal = proxy_parse_html(BBCode::convert(Config::get('impressum', 'postal')));
|
||||
$notes = proxy_parse_html(BBCode::convert(Config::get('impressum', 'notes')));
|
||||
$postal = Proxy::proxifyHtml(BBCode::convert(Config::get('impressum', 'postal')));
|
||||
$notes = Proxy::proxifyHtml(BBCode::convert(Config::get('impressum', 'notes')));
|
||||
$email = obfuscate_email( Config::get('impressum','email') );
|
||||
if (strlen($owner)) {
|
||||
if (strlen($owner_profile)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue