X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=startpage%2Fstartpage.php;h=b0ee04cb794be8eafc164cafd699a5a8eb8f8a94;hb=575a285951f7fa0908177c873d00fe8879dd0ba2;hp=c4324576609d90f07978c24366457a4645db13dc;hpb=4ceec855d24fa53cc147552c0220709d65e6ecb3;p=friendica-addons.git diff --git a/startpage/startpage.php b/startpage/startpage.php index c4324576..b0ee04cb 100644 --- a/startpage/startpage.php +++ b/startpage/startpage.php @@ -4,7 +4,7 @@ * Description: Set a preferred page to load on login from home page * Version: 1.0 * Author: Mike Macgirvin - * + * */ use Friendica\Core\PConfig; @@ -30,10 +30,7 @@ function startpage_home_init($a, $b) { $page = PConfig::get(local_user(),'startpage','startpage'); if(strlen($page)) { - $slash = ((strpos($page,'/') === 0) ? true : false); - if(stristr($page,'://')) - goaway($page); - goaway($a->get_baseurl() . (($slash) ? '' : '/') . $page); + goaway($page); } return; } @@ -57,7 +54,7 @@ function startpage_settings_post($a,$post) { /** * - * Called from the Plugin Setting form. + * Called from the Plugin Setting form. * Add our own settings info to the page. * */