X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdelegate.php;h=20d2e605e0a2d91c90e1d664567037d6baf1902d;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=56d11970fe7d3dfadf9335f1ad69bb4c04e5b12a;hpb=068cb53a9ea44cf276c6b0e39ef92182b883d5fa;p=friendica.git diff --git a/mod/delegate.php b/mod/delegate.php index 56d11970fe..20d2e605e0 100644 --- a/mod/delegate.php +++ b/mod/delegate.php @@ -1,4 +1,10 @@ user['email']), dbesc($a->user['password']) ); @@ -87,7 +92,7 @@ function delegate_content(&$a) { $r = q("select nurl from contact where substring_index(contact.nurl,'/',3) = '%s' and contact.uid = %d and contact.self = 0 and network = '%s' ", - dbesc($a->get_baseurl()), + dbesc(normalise_link($a->get_baseurl())), intval(local_user()), dbesc(NETWORK_DFRN) ); @@ -118,6 +123,9 @@ function delegate_content(&$a) { if(! in_array($rr['uid'],$uids)) $potentials[] = $rr; + require_once("mod/settings.php"); + settings_init($a); + $o = replace_macros(get_markup_template('delegate.tpl'),array( '$header' => t('Delegate Page Management'), '$base' => $a->get_baseurl(), @@ -137,4 +145,4 @@ function delegate_content(&$a) { return $o; -} \ No newline at end of file +}