]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_poll.php
Move L10n::getPokeVerbs() calls to DI::l10n()->getPokeVerbs() calls
[friendica.git] / mod / dfrn_poll.php
index 002ddf924b0905c4408583b8e27e3f5d2c4557cb..e18874481358a8c9dff1a287bcc4def209f84ac2 100644 (file)
@@ -121,7 +121,7 @@ function dfrn_poll_init(App $a)
                                        Session::setVisitorsContacts();
 
                                        if (!$quiet) {
-                                               info(L10n::t('%1$s welcomes %2$s', $r[0]['username'], $r[0]['name']) . EOL);
+                                               info(DI::l10n()->t('%1$s welcomes %2$s', $r[0]['username'], $r[0]['name']) . EOL);
                                        }
 
                                        // Visitors get 1 day session.
@@ -524,7 +524,7 @@ function dfrn_poll_content(App $a)
                                        Session::setVisitorsContacts();
 
                                        if (!$quiet) {
-                                               info(L10n::t('%1$s welcomes %2$s', $r[0]['username'], $r[0]['name']) . EOL);
+                                               info(DI::l10n()->t('%1$s welcomes %2$s', $r[0]['username'], $r[0]['name']) . EOL);
                                        }
 
                                        // Visitors get 1 day session.
@@ -541,7 +541,7 @@ function dfrn_poll_content(App $a)
 
                        switch ($destination_url) {
                                case 'profile':
-                                       DI::baseUrl()->redirect('profile/' . $profile . '?f=&tab=profile');
+                                       DI::baseUrl()->redirect('profile/' . $profile . '?tab=profile');
                                        break;
                                case 'photos':
                                        DI::baseUrl()->redirect('photos/' . $profile);
@@ -551,7 +551,7 @@ function dfrn_poll_content(App $a)
                                        DI::baseUrl()->redirect('profile/' . $profile);
                                        break;
                                default:
-                                       $appendix = (strstr($destination_url, '?') ? '&f=&redir=1' : '?f=&redir=1');
+                                       $appendix = (strstr($destination_url, '?') ? '&redir=1' : '?redir=1');
                                        DI::baseUrl()->redirect($destination_url . $appendix);
                                        break;
                        }