]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagrm.php
Merge pull request #3518 from AndyHee/3.5.2rc
[friendica.git] / mod / tagrm.php
index 8379495a2dba75016f8acb9e7f34695d0df86837..ea1ab7909dd851102a1215235f10bb48321bb0eb 100644 (file)
@@ -1,8 +1,10 @@
 <?php
 
+use Friendica\App;
+
 require_once('include/bbcode.php');
 
-function tagrm_post(App &$a) {
+function tagrm_post(App $a) {
 
        if (! local_user()) {
                goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']);
@@ -42,14 +44,14 @@ function tagrm_post(App &$a) {
 
        info( t('Tag removed') . EOL );
        goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']);
-       
+
        // NOTREACHED
 
 }
 
 
 
-function tagrm_content(App &$a) {
+function tagrm_content(App $a) {
 
        $o = '';
 
@@ -59,7 +61,7 @@ function tagrm_content(App &$a) {
        }
 
        $item = (($a->argc > 1) ? intval($a->argv[1]) : 0);
-       if(! $item) {
+       if (! $item) {
                goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']);
                // NOTREACHED
        }
@@ -87,8 +89,7 @@ function tagrm_content(App &$a) {
        $o .= '<input type="hidden" name="item" value="' . $item . '" />';
        $o .= '<ul>';
 
-
-       foreach($arr as $x) {
+       foreach ($arr as $x) {
                $o .= '<li><input type="checkbox" name="tag" value="' . bin2hex($x) . '" >' . bbcode($x) . '</input></li>';
        }
 
@@ -98,5 +99,5 @@ function tagrm_content(App &$a) {
        $o .= '</form>';
 
        return $o;
-       
+
 }