]> git.mxchange.org Git - friendica.git/blobdiff - mod/admin.php
Friendica 'Ginger' 3.3
[friendica.git] / mod / admin.php
index 6064a04ff587c4aa2fdbc210d87bc4bf209542af..12ab2bea5fdc33829fa8ae830c8964c12f1b289f 100644 (file)
@@ -223,6 +223,8 @@ function admin_page_summary(&$a) {
                '$accounts' => $accounts,
                '$pending' => Array( t('Pending registrations'), $pending),
                '$version' => Array( t('Version'), FRIENDICA_VERSION),
+               '$platform' => FRIENDICA_PLATFORM,
+               '$codename' => FRIENDICA_CODENAME,
                '$build' =>  get_config('system','build'),
                '$plugins' => Array( t('Active plugins'), $a->plugins )
        ));
@@ -795,7 +797,7 @@ function admin_page_users_post(&$a){
 
                notification(array(
                        'type' => "SYSTEM_EMAIL",
-                       'to_email' => $email,
+                       'to_email' => $nu['email'],
                        'subject'=> sprintf( t('Registration details for %s'), $a->config['sitename']),
                        'preamble'=> $preamble,
                        'body' => $body));
@@ -1203,9 +1205,11 @@ function admin_page_themes(&$a){
                foreach($files as $file) {
                        $f = basename($file);
                        $is_experimental = intval(file_exists($file . '/experimental'));
-                       $is_supported = 1-(intval(file_exists($file . '/unsupported'))); // Is not used yet
+                       $is_supported = 1-(intval(file_exists($file . '/unsupported')));
                        $is_allowed = intval(in_array($f,$allowed_themes));
-                       $themes[] = array('name' => $f, 'experimental' => $is_experimental, 'supported' => $is_supported, 'allowed' => $is_allowed);
+
+                       if ($is_allowed OR $is_supported OR get_config("system", "show_unsupported_themes"))
+                               $themes[] = array('name' => $f, 'experimental' => $is_experimental, 'supported' => $is_supported, 'allowed' => $is_allowed);
                }
        }