Overview
Comment:Fix call in homepage
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 47fe6865222bb961d3b3ce71ad9266e5b3d7c431bdec5d105a8fefd3c356d509
User & Date: bohwaz on 2021-09-16 17:53:35
Other Links: manifest | tags
Context
2021-09-16
17:59
Fix links to export of services for a user, fixes [62ee3968bcd21896ec81dcf0cf8a4552b6d9c3f8] check-in: 5d14370670 user: bohwaz tags: trunk, stable
17:53
Fix call in homepage check-in: 47fe686522 user: bohwaz tags: trunk, stable
17:49
Fix user_prefix argument in markdown passed to skriv check-in: 01df610025 user: bohwaz tags: trunk, stable
Changes

Modified src/www/admin/index.php from [bf52e33fdb] to [025ac1c529].

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

$homepage = Config::getInstance()->get('admin_homepage');

$banner = null;
Plugin::fireSignal('accueil.banniere', ['user' => $user, 'session' => $session], $banner);

if ($homepage && ($file = Files::get($homepage))) {
	$homepage = $file->render(['prefix' => ADMIN_URL . 'common/files/preview.php?p=' . File::CONTEXT_DOCUMENTS . '/']);
}
else {
	$homepage = null;
}

$tpl->assign(compact('homepage', 'banner'));








|







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

$homepage = Config::getInstance()->get('admin_homepage');

$banner = null;
Plugin::fireSignal('accueil.banniere', ['user' => $user, 'session' => $session], $banner);

if ($homepage && ($file = Files::get($homepage))) {
	$homepage = $file->render(ADMIN_URL . 'common/files/preview.php?p=' . File::CONTEXT_DOCUMENTS . '/');
}
else {
	$homepage = null;
}

$tpl->assign(compact('homepage', 'banner'));