X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=widgets%2Fwidgets.php;h=72534ce3bb75863556051ffbbbe91c13738eacc0;hb=1b861c6660d5aaf91ea9b93efee67daa9019d3fb;hp=27cabfd698cdec6580ee39d9c99b2ff0d8699fbd;hpb=86a45576b2b15a0be18bb0708d88cf022cdcf4e6;p=friendica-addons.git diff --git a/widgets/widgets.php b/widgets/widgets.php index 27cabfd6..72534ce3 100755 --- a/widgets/widgets.php +++ b/widgets/widgets.php @@ -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(),