]> git.mxchange.org Git - friendica.git/commitdiff
minor fixes to apps (don't show notes if not logged in) and photos (tag delete link...
authorFriendika <info@friendika.com>
Thu, 9 Jun 2011 04:43:32 +0000 (21:43 -0700)
committerFriendika <info@friendika.com>
Thu, 9 Jun 2011 04:43:32 +0000 (21:43 -0700)
mod/apps.php
mod/photos.php

index 58752de32231fbaf90b76ae3d84c2f9e16d2ed37..f25722df785ac6942353c74579ba5fc14a967cce 100644 (file)
@@ -5,10 +5,20 @@ function apps_content(&$a) {
 
        $o .= '<h3>' . t('Applications') . '</h3>';
 
-       $o .= '<div class="app-title"><a href="notes">' . t('Private Notes') . '</a></div>';
+       $apps = false;
 
-       if($a->apps)
+       if(local_user()) {
+               $apps = true;
+               $o .= '<div class="app-title"><a href="notes">' . t('Private Notes') . '</a></div>';
+       }
+
+       if($a->apps) {
+               $apps = true;
                $o .= $a->apps;
+       }
+
+       if(! $apps)
+               notice( t('No installed applications.') . EOL);
 
        return $o;
 
index f1a2d635cb158655c269d8cae872dbc9b2bee395..f8749f5f7c60aca022e06b9c42e5fd33f71e7f4c 100644 (file)
@@ -1106,9 +1106,10 @@ function photos_content(&$a) {
                                $tag_str .= bbcode($t);
                        } 
                        $tags = array(t('Tags: '), $tag_str);
-                       if($cmd === 'edit')
+                       if($cmd === 'edit') {
                                $tags[] = $a->get_baseurl() . '/tagrm/' . $link_item['id'];
                                $tags[] = t('[Remove any tag]');
+                       }
                }