Overview
Comment:Correction bug [edda38ee74]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b8157e5819454fc887db8ad2506a25982ecee1f6
User & Date: bohwaz on 2013-06-08 08:03:54
Other Links: manifest | tags
Context
2013-06-08
08:10
Merge avec stable check-in: f90c3ac859 user: bohwaz tags: trunk
08:03
Correction bug [edda38ee74] check-in: b8157e5819 user: bohwaz tags: trunk
07:54
Progression sur le report à nouveau, et suppression du doublon de la méthode doReports check-in: b65094375d 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;