Overview
SHA1:b8157e5819454fc887db8ad2506a25982ecee1f6
Date: 2013-06-08 08:03:54
User: bohwaz
Comment:Correction bug [edda38ee74]
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2013-06-08
08:10
[f90c3ac859] Merge avec stable (user: bohwaz, tags: trunk)
08:03
[b8157e5819] Correction bug [edda38ee74] (user: bohwaz, tags: trunk)
07:54
[b65094375d] Progression sur le report à nouveau, et suppression du doublon de la méthode doReports (user: bohwaz, tags: trunk)
Changes

Modified include/class.sauvegarde.php from [1e52e2ca98] to [0f64cbe808].

64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
		{
			$this->remove(key($list));
			$list = array_shift($list);
		}

		foreach ($list as $f=>$d)
		{
			$new = preg_replace_callback('/\.(\d+)\.auto\.sqlite$!', function ($m) {
				return (int) $m[1] + 1;
			}, $f);

			rename(GARRADIN_DATA_ROOT . '/' . $f, GARRADIN_DATA_ROOT . '/' . $new);
		}

		return true;







|







64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
		{
			$this->remove(key($list));
			$list = array_shift($list);
		}

		foreach ($list as $f=>$d)
		{
			$new = preg_replace_callback('!\.(\d+)\.auto\.sqlite$!', function ($m) {
				return (int) $m[1] + 1;
			}, $f);

			rename(GARRADIN_DATA_ROOT . '/' . $f, GARRADIN_DATA_ROOT . '/' . $new);
		}

		return true;