diff --git a/web/install/end.php b/web/install/end.php
index a86c2d903..9113a8786 100755
--- a/web/install/end.php
+++ b/web/install/end.php
@@ -35,23 +35,38 @@ if($_SESSION['install']['step'] == 5) {
->setLastname('admin')
->save();
- $config = new \Thelia\Model\Config();
- $config->setName('contact_email')
- ->setValue($_POST['email_contact'])
- ->save();
- ;
+
+ \Thelia\Model\ConfigQuery::create()
+ ->filterByName('contact_email')
+ ->update(array('Value' => $_POST['email_contact']));
+
+ \Thelia\Model\ConfigQuery::create()
+ ->filterByName('company_name')
+ ->update(array('Value' => $_POST['company_name']));
}
+//clean up cache directories
+$fs = new \Symfony\Component\Filesystem\Filesystem();
+
+$fs->remove(THELIA_ROOT . '/cache/prod');
+$fs->remove(THELIA_ROOT . '/cache/dev');
+
+
+$request = \Thelia\Core\HttpFoundation\Request::createFromGlobals();
$_SESSION['install']['step'] = $step;
?>
- Thank you have installed Thelia
+ Thanks, you have installed Thelia
Don't forget to delete the web/install directory.
+
+ Go to back office
+
+
\ No newline at end of file
diff --git a/web/test_to_remove/admin-stats.json b/web/test_to_remove/admin-stats.json
new file mode 100644
index 000000000..220b140c4
--- /dev/null
+++ b/web/test_to_remove/admin-stats.json
@@ -0,0 +1,25 @@
+{
+ "title" : "Stats on September 2013",
+ "series" : [
+ {
+ "datas" : [[0,10.00],[1,200.00],[2,5.00],[3,2.75],[4,20.30],[5,14.09],[6,5],[7,23],[8,5],[9,42],[10,0],[11,4],[12,78],[13,75],[14,70],[15,65],[16,102],[17,50],[18,27],[19,35],[20,37],[21,29],[22,56],[23,52],[24,12],[25,6],[26,82],[27,32],[28,15],[29,50],[30,42]],
+ "color" : "#adadad"
+ },
+ {
+ "datas" : [[0,2],[1,5],[2,5],[3,7],[4,8],[5,9],[6,5],[7,2],[8,5],[9,4],[10,0],[11,4],[12,7],[13,7],[14,7],[15,6],[16,1],[17,5],[18,2],[19,3],[20,3],[21,2],[22,5],[23,5],[24,1],[25,6],[26,8],[27,3],[28,1],[29,5],[30,4]],
+ "color" : "#f39922"
+ },
+ {
+ "datas" : [[0,15],[1,20],[2,1],[3,1],[4,2],[5,3]],
+ "color" : "#5cb85c"
+ },
+ {
+ "datas" : [[0,45],[1,40],[2,41],[3,41],[4,42],[5,43]],
+ "color" : "#5bc0de"
+ },
+ {
+ "datas" : [[0,25],[1,20],[2,21],[3,21],[4,22],[5,23]],
+ "color" : "#d9534f"
+ }
+ ]
+}