aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2011-01-06 08:37:44 +0100
committerroot <root@diekershoff.homeunix.net>2011-01-06 08:37:44 +0100
commit05708c9a8d6f6a1cbd29a208f1372403fcff2058 (patch)
treea04c34f91904f83a8fdc6cad7af5eddf1a766092 /mod
parent011e0c3f8142e3976a4d386fce066c802d4727ab (diff)
parent95ec0767d88efa7d8290db875b1c0f72542d9b68 (diff)
downloadvolse-hubzilla-05708c9a8d6f6a1cbd29a208f1372403fcff2058.tar.gz
volse-hubzilla-05708c9a8d6f6a1cbd29a208f1372403fcff2058.tar.bz2
volse-hubzilla-05708c9a8d6f6a1cbd29a208f1372403fcff2058.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php13
1 files changed, 8 insertions, 5 deletions
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'];