]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
Removed many "limit 1" at update and delete queries since they were superflous und...
[friendica.git] / mod / notifications.php
index 128317eb473b5b5bf0d2c94a684bef4a23b4ea62..c7f8e1bbd912e9cab3e97d9a1db9d87c6ca76aa9 100644 (file)
@@ -218,7 +218,7 @@ function notifications_content(&$a) {
 
                $o .= replace_macros($notif_tpl, array(
                        '$notif_header' => t('Notifications'),
-                       '$tabs_data' => $tabs,
+                       '$tabs' => $tabs,
                        '$notif_content' => $notif_content,
                ));
                
@@ -233,7 +233,7 @@ function notifications_content(&$a) {
                                `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object` as `object`, 
                                `pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink` 
                                FROM `item` INNER JOIN `item` as `pitem` ON  `pitem`.`id`=`item`.`parent`
-                               WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND `pitem`.`parent` != 0
+                               WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND `pitem`.`parent` != 0 AND
                                 `item`.`deleted` = 0 AND `item`.`uid` = %d AND `item`.`wall` = 0 ORDER BY `item`.`created` DESC" ,
                        intval(local_user())
                );
@@ -304,7 +304,7 @@ function notifications_content(&$a) {
                
                $o .= replace_macros($notif_tpl, array(
                        '$notif_header' => t('Network Notifications'),
-                       '$tabs_data' => $tabs,
+                       '$tabs' => $tabs,
                        '$notif_content' => $notif_content,
                ));
                
@@ -334,7 +334,7 @@ function notifications_content(&$a) {
                
                $o .= replace_macros($notif_tpl, array(
                        '$notif_header' => t('System Notifications'),
-                       '$tabs_data' => $tabs,
+                       '$tabs' => $tabs,
                        '$notif_content' => $notif_content,
                ));
 
@@ -429,7 +429,7 @@ function notifications_content(&$a) {
                
                $o .= replace_macros($notif_tpl, array(
                        '$notif_header' => t('Personal Notifications'),
-                       '$tabs_data' => $tabs,
+                       '$tabs' => $tabs,
                        '$notif_content' => $notif_content,
                ));
                
@@ -510,7 +510,7 @@ function notifications_content(&$a) {
                
                $o .= replace_macros($notif_tpl, array(
                        '$notif_header' => t('Home Notifications'),
-                       '$tabs_data' => $tabs,
+                       '$tabs' => $tabs,
                        '$notif_content' => $notif_content,
                ));
        }