Overview
Comment:Fix bugs at install with new files
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable | 1.1.16
Files: files | file ages | folders
SHA3-256: 7e4176248d09a50c1da8453efd6388b9e122e3317bc20bd85356d111eb3f89e2
User & Date: bohwaz on 2021-12-07 00:47:08
Other Links: manifest | tags
Context
2021-12-07
11:20
Fix division by zero in color generator check-in: a514b0af23 user: bohwaz tags: trunk, stable
00:47
Fix bugs at install with new files check-in: 7e4176248d user: bohwaz tags: trunk, stable, 1.1.16
00:07
Change default icon check-in: 12aed3988e user: bohwaz tags: trunk, stable, 1.1.16
Changes

Modified src/include/lib/Garradin/Install.php from [8fcd87587c] to [a878545951].

144
145
146
147
148
149
150


151
152
153
154
155
156
157
		$id_membre = $membres->add([
			'id_category' => $cat->id(),
			'nom'         => $user_name,
			'email'       => $user_email,
			'passe'       => $user_password,
			'pays'        => 'FR',
		]);



		$welcome_text = $welcome_text ?? sprintf("Bienvenue dans l'administration de %s !\n\nUtilisez le menu à gauche pour accéder aux différentes sections.\n\nCe message peut être modifié dans la 'Configuration'.", $name);

		$config->setFile('admin_homepage', $welcome_text);

        // Import accounting chart
        $chart = new Chart;







>
>







144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
		$id_membre = $membres->add([
			'id_category' => $cat->id(),
			'nom'         => $user_name,
			'email'       => $user_email,
			'passe'       => $user_password,
			'pays'        => 'FR',
		]);

		$config->set('files', array_map(fn () => null, $config::FILES));

		$welcome_text = $welcome_text ?? sprintf("Bienvenue dans l'administration de %s !\n\nUtilisez le menu à gauche pour accéder aux différentes sections.\n\nCe message peut être modifié dans la 'Configuration'.", $name);

		$config->setFile('admin_homepage', $welcome_text);

        // Import accounting chart
        $chart = new Chart;

Modified src/templates/admin/_head.tpl from [22986465d6] to [5309b64308].

25
26
27
28
29
30
31
32
33
34
35
36

37
38
39
40
41
42
43
44
45

46
47
48
49
50

51
52
53
54
55
56
57
    {if isset($plugin_js)}
        {foreach from=$plugin_js item="js"}
            <script type="text/javascript" src="{plugin_url file=$js}?{$version_hash}"></script>
        {/foreach}
    {/if}
    <link rel="stylesheet" type="text/css" href="{$admin_url}static/print.css?{$version_hash}" media="print" />
    <link rel="stylesheet" type="text/css" href="{$admin_url}static/handheld.css?{$version_hash}" media="handheld,screen and (max-width:981px)" />
    <link rel="icon" type="image/png" href="{$config->fileURL('favicon')}" />
    {if !empty($current) && $current == 'home'}
    <link rel="manifest" href="{$admin_url}manifest.php?{$version_hash}" />
    {/if}
    {if isset($config)}

        {custom_colors config=$config}
    {/if}
</head>

<body{if isset($transparent)} class="transparent"{/if}>

{if !array_key_exists('_dialog', $_GET) && !isset($transparent)}
<header class="header">
    <nav class="menu">

        <figure class="logo">
        {if $url = $config->fileURL('logo', '150px')}
            <a href="{$admin_url}"><img src="{$url}" alt="" /></a>
        {/if}
        </figure>

    <ul>
    {if $is_logged}
    <?php
    $current_parent = substr($current, 0, strpos($current, '/'));
    ?>
        <li class="home{if $current == 'home'} current{elseif $current_parent == 'home'} current_parent{/if}">
            <a href="{$admin_url}"><b class="icn">⌂</b><i> Accueil</i></a>







<




>









>





>







25
26
27
28
29
30
31

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
    {if isset($plugin_js)}
        {foreach from=$plugin_js item="js"}
            <script type="text/javascript" src="{plugin_url file=$js}?{$version_hash}"></script>
        {/foreach}
    {/if}
    <link rel="stylesheet" type="text/css" href="{$admin_url}static/print.css?{$version_hash}" media="print" />
    <link rel="stylesheet" type="text/css" href="{$admin_url}static/handheld.css?{$version_hash}" media="handheld,screen and (max-width:981px)" />

    {if !empty($current) && $current == 'home'}
    <link rel="manifest" href="{$admin_url}manifest.php?{$version_hash}" />
    {/if}
    {if isset($config)}
        <link rel="icon" type="image/png" href="{$config->fileURL('favicon')}" />
        {custom_colors config=$config}
    {/if}
</head>

<body{if isset($transparent)} class="transparent"{/if}>

{if !array_key_exists('_dialog', $_GET) && !isset($transparent)}
<header class="header">
    <nav class="menu">
        {if isset($config)}
        <figure class="logo">
        {if $url = $config->fileURL('logo', '150px')}
            <a href="{$admin_url}"><img src="{$url}" alt="" /></a>
        {/if}
        </figure>
        {/if}
    <ul>
    {if $is_logged}
    <?php
    $current_parent = substr($current, 0, strpos($current, '/'));
    ?>
        <li class="home{if $current == 'home'} current{elseif $current_parent == 'home'} current_parent{/if}">
            <a href="{$admin_url}"><b class="icn">⌂</b><i> Accueil</i></a>