X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=widgets%2Fwidgets.php;h=72534ce3bb75863556051ffbbbe91c13738eacc0;hb=79b509ff5e957d9544564928af80a938e4b4f5cc;hp=226a34c060f88c519469c832f1a1f209172e44e0;hpb=97cdca14c46fdda12fa56dd16566f7b08745cfb9;p=friendica-addons.git diff --git a/widgets/widgets.php b/widgets/widgets.php old mode 100644 new mode 100755 index 226a34c0..72534ce3 --- a/widgets/widgets.php +++ b/widgets/widgets.php @@ -1,7 +1,7 @@ */ @@ -19,7 +19,8 @@ function widgets_uninstall() { function widgets_settings_post(){ - + if(! local_user()) + return; if (isset($_POST['widgets-submit'])){ del_pconfig(local_user(), 'widgets', 'key'); @@ -50,7 +51,8 @@ function widgets_settings(&$a,&$o) { - $t = file_get_contents( dirname(__file__). "/settings.tpl" ); +# $t = file_get_contents( dirname(__file__). "/settings.tpl" ); + $t = get_markup_template("settings.tpl", "addon/widgets/"); $o .= replace_macros($t, array( '$submit' => t('Generate new key'), '$baseurl' => $a->get_baseurl(),