aboutsummaryrefslogtreecommitdiffstats
path: root/mod/notifications.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-07 18:00:35 -0700
committerFriendika <info@friendika.com>2011-04-07 18:00:35 -0700
commit338ba485548f9ec1acbc9349f7db95e84c51e7eb (patch)
treed43dc2127c85e5a1df96a1aeb24e23d35d846b67 /mod/notifications.php
parent3a6dfb9862c4d91f7a2f259bca447a469e19e8b5 (diff)
downloadvolse-hubzilla-338ba485548f9ec1acbc9349f7db95e84c51e7eb.tar.gz
volse-hubzilla-338ba485548f9ec1acbc9349f7db95e84c51e7eb.tar.bz2
volse-hubzilla-338ba485548f9ec1acbc9349f7db95e84c51e7eb.zip
more templates
Diffstat (limited to 'mod/notifications.php')
-rw-r--r--mod/notifications.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/mod/notifications.php b/mod/notifications.php
index ed0831aab..c3f8449ed 100644
--- a/mod/notifications.php
+++ b/mod/notifications.php
@@ -147,17 +147,13 @@ function notifications_content(&$a) {
LEFT JOIN `contact` ON `register`.`uid` = `contact`.`uid`
LEFT JOIN `user` ON `register`.`uid` = `user`.`uid`;");
if(($r !== false) && (count($r))) {
- $tpl = load_view_file("view/registrations.tpl");
+ $o .= '<ul>';
foreach($r as $rr) {
- $o .= "<ul>";
- $o .= replace_macros($tpl, array(
- '$fullname' => $rr['name'],
- '$email' => $rr['email'],
- '$approvelink' => "regmod/allow/".$rr['hash'],
- '$denylink' => "regmod/deny/".$rr['hash'],
- ));
- $o .= "</ul>";
+ $o .= '<li>' . sprintf('%s (%s) : ', $rr['name'],$rr['email'])
+ . '<a href="regmod/allow/' . $rr['hash'] .'">' . t('Approve')
+ . '</a> - <href="regmod/deny/' . $rr['hash'] . '">' . t('Deny') . '</a></li>' . "\r\n";
}
+ $o .= "</ul>";
}
else
notice( t('No registrations.') . EOL);