begin code to sync channel changes across all channel clones.

This commit is contained in:
friendica
2013-06-25 18:15:17 -07:00
parent a0a91fc971
commit 57c7f725f6
4 changed files with 102 additions and 9 deletions

View File

@@ -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) {