aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-25 18:15:17 -0700
committerfriendica <info@friendica.com>2013-06-25 18:15:17 -0700
commit57c7f725f67ac868b54d0dbff2d4fb0122af3954 (patch)
treee107cfdc48e8b49141a672559ca82d441adf6a1a /mod
parenta0a91fc9719c0eb665043417ea582727f24a2cde (diff)
downloadvolse-hubzilla-57c7f725f67ac868b54d0dbff2d4fb0122af3954.tar.gz
volse-hubzilla-57c7f725f67ac868b54d0dbff2d4fb0122af3954.tar.bz2
volse-hubzilla-57c7f725f67ac868b54d0dbff2d4fb0122af3954.zip
begin code to sync channel changes across all channel clones.
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/mod/settings.php b/mod/settings.php
index a6d45e9b8..788514eca 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -1,5 +1,7 @@
<?php
+require_once('include/settings.php');
+
function get_theme_config_file($theme){
@@ -115,13 +117,6 @@ function settings_post(&$a) {
return;
-// if(count($a->user) && x($a->user,'uid') && $a->user['uid'] != local_user()) {
-// notice( t('Permission denied.') . EOL);
-// return;
-// }
-
- $old_page_flags = $a->user['page-flags'];
-
if((argc() > 1) && (argv(1) === 'oauth') && x($_POST,'remove')){
check_form_security_token_redirectOnErr('/settings/oauth', 'settings_oauth');
@@ -292,7 +287,7 @@ function settings_post(&$a) {
$errs[] = t('Not valid email.');
$adm = trim(get_config('system','admin_email'));
if(($adm) && (strcasecmp($email,$adm) == 0)) {
- $errs[] = t('Protected email. Cannot change to that email.');
+ $errs[] = t('Protected email address. Cannot change to that email.');
$email = $a->user['email'];
}
if(! $errs) {