]> git.mxchange.org Git - friendica-addons.git/commitdiff
renamed System::redirectTo to System::redirect
authorPhilipp Holzer <admin@philipp.info>
Mon, 15 Oct 2018 06:50:33 +0000 (08:50 +0200)
committerPhilipp Holzer <admin@philipp.info>
Mon, 4 Feb 2019 00:50:30 +0000 (01:50 +0100)
blackout/blackout.php
notifyall/notifyall.php
startpage/startpage.php
statusnet/statusnet.php
twitter/twitter.php

index 79b3fc92a7cd1585472ba19b5cb710a6dea71bdf..9fba4cd1a5bfa44a0462009e5f3e1ebf124c1801 100644 (file)
@@ -88,7 +88,7 @@ function blackout_redirect ($a, $b) {
     }
     if (( $date1 <= $now ) && ( $now <= $date2 )) {
         logger('redirecting user to blackout page');
-        System::redirectTo($myurl);
+        System::redirect($myurl);
     }
 }
 
index 01cea75d7a94329a8f5c2938b31926bb04d6665c..9789ccd95fddcb739967349f151f75e18242a1d8 100644 (file)
@@ -96,7 +96,7 @@ function notifyall_post(App $a)
        }
 
        notice(L10n::t('Emails sent'));
-       System::redirectTo('admin');
+       System::redirect('admin');
 }
 
 function notifyall_content(&$a)
index 704c36f98082c92ef42d0a90e2f61908cce81130..0b4653e1626d7fab4b16044722d0de870a6281ba 100644 (file)
@@ -32,7 +32,7 @@ function startpage_home_init($a, $b)
 
        $page = PConfig::get(local_user(), 'startpage', 'startpage');
        if (strlen($page)) {
-               System::redirectTo($page);
+               System::redirect($page);
        }
        return;
 }
index fd73520375af6db37234c415638e5a93b849a9e4..274a6abd855fd642d669da2876eb5a94f103b690 100644 (file)
@@ -164,7 +164,7 @@ function statusnet_settings_post(App $a, $post)
                                        }
                                }
                        }
-                       System::redirectTo('settings/connectors');
+                       System::redirect('settings/connectors');
                } else {
                        if (isset($_POST['statusnet-consumersecret'])) {
                                //  check if we can reach the API of the GNU Social server
@@ -192,7 +192,7 @@ function statusnet_settings_post(App $a, $post)
                                                notice(L10n::t('We could not contact the GNU Social API with the Path you entered.') . EOL);
                                        }
                                }
-                               System::redirectTo('settings/connectors');
+                               System::redirect('settings/connectors');
                        } else {
                                if (isset($_POST['statusnet-pin'])) {
                                        //  if the user supplied us with a PIN from GNU Social, let the magic of OAuth happen
@@ -210,7 +210,7 @@ function statusnet_settings_post(App $a, $post)
                                        PConfig::set(local_user(), 'statusnet', 'post', 1);
                                        PConfig::set(local_user(), 'statusnet', 'post_taglinks', 1);
                                        //  reload the Addon Settings page, if we don't do it see Bug #42
-                                       System::redirectTo('settings/connectors');
+                                       System::redirect('settings/connectors');
                                } else {
                                        //  if no PIN is supplied in the POST variables, the user has changed the setting
                                        //  to post a dent for every new __public__ posting to the wall
index bb2d38abb4df2b4494cbe07d0cb2ea92ea9b8f49..90cea144cfa1eec2f85ed4ce877a1734e3e4350f 100644 (file)
@@ -261,7 +261,7 @@ function twitter_settings_post(App $a)
                                info($e->getMessage());
                        }
                        //  reload the Addon Settings page, if we don't do it see Bug #42
-                       System::redirectTo('settings/connectors');
+                       System::redirect('settings/connectors');
                } else {
                        //  if no PIN is supplied in the POST variables, the user has changed the setting
                        //  to post a tweet for every new __public__ posting to the wall