<?php
+require_once('mod/settings.php');
+
+function delegate_init(&$a) {
+ return settings_init($a);
+}
+
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)
);
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(),
return $o;
-}
\ No newline at end of file
+}