aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-16 22:48:05 -0700
committerfriendica <info@friendica.com>2013-07-16 22:48:05 -0700
commit4c30cddbfc105c0ea60f30594b760633e654cb0c (patch)
tree127e412b5f6bb038de8758b9d227fd32204b83e4 /mod
parent6d447ace5c72e74145198ab1c3ebac2bf85d33cf (diff)
downloadvolse-hubzilla-4c30cddbfc105c0ea60f30594b760633e654cb0c.tar.gz
volse-hubzilla-4c30cddbfc105c0ea60f30594b760633e654cb0c.tar.bz2
volse-hubzilla-4c30cddbfc105c0ea60f30594b760633e654cb0c.zip
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.
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 164a2a8a0..1878fceb6 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -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) {