From 95ec0767d88efa7d8290db875b1c0f72542d9b68 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 5 Jan 2011 13:10:47 -0800 Subject: plugin settings were getting changed --- mod/settings.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'mod/settings.php') diff --git a/mod/settings.php b/mod/settings.php index 9a9fde5c6..1923c58da 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -15,15 +15,18 @@ function settings_post(&$a) { return; } - call_hooks('settings_post', $_POST); - - if(($a->argc > 1) && ($a->argv[1] == 'addon')) - return; - if(count($a->user) && x($a->user,'uid') && $a->user['uid'] != local_user()) { notice( t('Permission denied.') . EOL); return; } + + if(($a->argc > 1) && ($a->argv[1] == 'addon')) { + call_hooks('plugin_settings_post', $_POST); + return; + } + + call_hooks('settings_post', $_POST); + if((x($_POST,'npassword')) || (x($_POST,'confirm'))) { $newpass = $_POST['npassword']; -- cgit v1.2.3