provide a controlling user for theme settings, not necessarily local_user() - can't test on my test site so moving into production and I'll debug it there.

This commit is contained in:
friendica
2013-07-16 22:48:05 -07:00
parent 6d447ace5c
commit 4c30cddbfc
4 changed files with 36 additions and 15 deletions

View File

@@ -3,6 +3,7 @@
require_once('include/settings.php');
function get_theme_config_file($theme){
$base_theme = get_app()->theme_info['extends'];
@@ -16,6 +17,11 @@ function get_theme_config_file($theme){
return null;
}
function settings_init(&$a) {
$a->profile_uid = local_user();
}
function settings_aside(&$a) {