This commit is contained in:
Mike Macgirvin 2022-09-03 06:22:59 +10:00
parent 39dbf4ad06
commit c3465ba2ad
3 changed files with 7 additions and 12 deletions

View file

@ -404,13 +404,6 @@ class Channel
Libsync::build_sync_packet();
if ($email_changed && App::$config['system']['register_policy'] == REGISTER_VERIFY) {
// FIXME - set to un-verified, blocked and redirect to logout
// Q: Why? Are we verifying people or email addresses?
// A: the policy is to verify email addresses
}
goaway(z_root() . '/settings');
return; // NOTREACHED
}

View file

@ -3,6 +3,8 @@
namespace Code\Module\Settings;
use Code\Lib\Features;
use Code\Lib\Libacl;
use Code\Lib\Libsync;
use Code\Render\Theme;
@ -13,7 +15,7 @@ class Network
{
check_form_security_token_redirectOnErr('/settings/network', 'settings_network');
$features = self::Features::get();
$features = $this->get_features();
foreach ($features as $f) {
$k = $f[0];
@ -24,14 +26,14 @@ class Network
}
}
build_sync_packet();
Libsync::build_sync_packet();
return;
}
public function get()
{
$features = self::Features::get();
$features = $this->get_features();
foreach ($features as $f) {
$arr[] = array('feature_' . $f[0], $f[1], ((intval(Features::enabled(local_channel(), $f[0]))) ? "1" : ''), $f[2], array(t('Off'), t('On')));
@ -39,7 +41,7 @@ class Network
$tpl = Theme::get_template("settings_module.tpl");
$o .= replace_macros($tpl, array(
$o = replace_macros($tpl, array(
'$action_url' => 'settings/network',
'$form_security_token' => get_form_security_token("settings_network"),
'$title' => t('Activity Settings'),

View file

@ -867,7 +867,7 @@ function dlogger($msg, $level = 0)
function profiler($t1, $t2, $label)
{
if (file_exists('profiler.out') && $t1 && t2) {
if (file_exists('profiler.out') && $t1 && $t2) {
@file_put_contents('profiler.out', sprintf('%01.4f %s', $t2 - $t1, $label) . PHP_EOL, FILE_APPEND);
}
}