Overview
Comment:Fix reset when nothing is selected
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: a5af1bd78badf2522aa8c02ad394c039b430d8caa30dfc17fe795de539b25085
User & Date: bohwaz on 2021-04-10 11:19:34
Other Links: manifest | tags
Context
2021-04-10
11:39
Fix links in admin homepage check-in: 1395906311 user: bohwaz tags: trunk, stable, 1.1.1
11:19
Fix reset when nothing is selected check-in: a5af1bd78b user: bohwaz tags: trunk, stable
2021-04-09
01:49
Make message more contextual check-in: 4b897e31c6 user: bohwaz tags: trunk, stable
Changes

Modified src/www/admin/web/config.php from [ce640ecdba] to [0d428e1d11].

17
18
19
20
21
22
23




24
25
26
27
28
29
30
{
	$config->set('site_disabled', false);
	$config->save();
	Utils::redirect(Utils::getSelfURI());
}

$form->runIf('reset', function () {




	Skeleton::resetSelected(f('select'));
}, 'squelettes', Utils::getSelfURI('reset_ok'));

if (qg('edit')) {
	$source = trim(qg('edit'));
	$csrf_key = 'edit_skel_' . md5($source);








>
>
>
>







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
	$config->set('site_disabled', false);
	$config->save();
	Utils::redirect(Utils::getSelfURI());
}

$form->runIf('reset', function () {
	if (!f('select')) {
		return;
	}

	Skeleton::resetSelected(f('select'));
}, 'squelettes', Utils::getSelfURI('reset_ok'));

if (qg('edit')) {
	$source = trim(qg('edit'));
	$csrf_key = 'edit_skel_' . md5($source);