Overview
Comment:Toujours créer les répertoires de manière récusive, au cas où
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 0a5c42b0fbee5b886661f8a19ef8a3579a4f76e8
User & Date: bohwaz on 2018-07-29 13:20:47
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2018-07-30
22:14
Fix namespace de constante check-in: 6be889885a user: bohwaz tags: trunk, stable
2018-07-29
13:20
Toujours créer les répertoires de manière récusive, au cas où check-in: 0a5c42b0fb user: bohwaz tags: trunk, stable
2018-07-27
12:41
Corrige cotisations par durée affichées pas à jour, patch suggéré par @daniel check-in: 774d4cee5e user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Install.php from [3900ff2e28] to [e286e959c9].

127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
		// Vérifier que les répertoires vides existent, sinon les créer
		$paths = [DATA_ROOT, PLUGINS_ROOT, CACHE_ROOT, CACHE_ROOT . '/static', CACHE_ROOT . '/compiled'];

		foreach ($paths as $path)
		{
		    if (!file_exists($path))
		    {
		        mkdir($path);
		    }

		    if (!is_dir($path))
		    {
		    	throw new UserException('Le répertoire '.$path.' n\'existe pas ou n\'est pas un répertoire.');
		    }








|







127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
		// Vérifier que les répertoires vides existent, sinon les créer
		$paths = [DATA_ROOT, PLUGINS_ROOT, CACHE_ROOT, CACHE_ROOT . '/static', CACHE_ROOT . '/compiled'];

		foreach ($paths as $path)
		{
		    if (!file_exists($path))
		    {
		        mkdir($path, 0777, true);
		    }

		    if (!is_dir($path))
		    {
		    	throw new UserException('Le répertoire '.$path.' n\'existe pas ou n\'est pas un répertoire.');
		    }

Modified src/include/lib/Garradin/Squelette.php from [63f2767bad] to [a6a2b8cd25].

878
879
880
881
882
883
884
885
886
887
888
889
890
891
892

    static private function compile_store($tpl, $content)
    {
        $path = self::compile_get_path($tpl);

        if (!file_exists(dirname($path)))
        {
            mkdir(dirname($path));
        }

        file_put_contents($path, $content);
        return true;
    }

    static public function compile_clear($tpl)







|







878
879
880
881
882
883
884
885
886
887
888
889
890
891
892

    static private function compile_store($tpl, $content)
    {
        $path = self::compile_get_path($tpl);

        if (!file_exists(dirname($path)))
        {
            mkdir(dirname($path), 0777, true);
        }

        file_put_contents($path, $content);
        return true;
    }

    static public function compile_clear($tpl)

Modified src/include/lib/Garradin/Static_Cache.php from [29cb9a9906] to [453588f5aa].

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

	protected static function _getCacheDir()
	{
		$dir = CACHE_ROOT . '/static';

		if (!file_exists($dir))
		{
			mkdir(CACHE_ROOT . '/static');
		}

		return CACHE_ROOT . '/static';
	}

	protected static function _getCachePath($id)
	{







|







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

	protected static function _getCacheDir()
	{
		$dir = CACHE_ROOT . '/static';

		if (!file_exists($dir))
		{
			mkdir(CACHE_ROOT . '/static', 0777, true);
		}

		return CACHE_ROOT . '/static';
	}

	protected static function _getCachePath($id)
	{

Modified src/include/lib/Garradin/Template.php from [7c31943209] to [8050b58d78].

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	{
	}

	public function __construct()
	{
		if (!file_exists(CACHE_ROOT . '/compiled'))
		{
			mkdir(CACHE_ROOT . '/compiled');
		}

		self::setCompileDir(CACHE_ROOT . '/compiled');
		self::setTemplateDir(ROOT . '/templates');

		parent::__construct();








|







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	{
	}

	public function __construct()
	{
		if (!file_exists(CACHE_ROOT . '/compiled'))
		{
			mkdir(CACHE_ROOT . '/compiled', 0777, true);
		}

		self::setCompileDir(CACHE_ROOT . '/compiled');
		self::setTemplateDir(ROOT . '/templates');

		parent::__construct();