summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-10-17 09:16:56 +0200
committernashe <thomas@chauchefoin.fr>2017-10-17 09:16:56 +0200
commitd68019ab377f1758e7e8a3f7962f7a6dca56fde3 (patch)
tree44ae1fe71fd87412a88a35daa56b6606bd1d67f7
parent4be283528552e579141b5e7d2d0a9a3972365bf2 (diff)
downloadplanet-d68019ab377f1758e7e8a3f7962f7a6dca56fde3.tar
planet-d68019ab377f1758e7e8a3f7962f7a6dca56fde3.tar.gz
planet-d68019ab377f1758e7e8a3f7962f7a6dca56fde3.tar.bz2
planet-d68019ab377f1758e7e8a3f7962f7a6dca56fde3.tar.xz
planet-d68019ab377f1758e7e8a3f7962f7a6dca56fde3.zip
Use new *_path helpers in install.php
-rwxr-xr-xinstall.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php
index ebdf77c..46b2c1c 100755
--- a/install.php
+++ b/install.php
@@ -38,12 +38,12 @@ if (file_exists(__DIR__ . '/custom/config.yml') && isset($login) && isset($passw
);
$CreatePlanetConfig = new PlanetConfig($config);
- $save['config'] = file_put_contents(__DIR__.'/custom/config.yml', $CreatePlanetConfig->toYaml());
+ $save['config'] = file_put_contents(custom_path('config.yml'), $CreatePlanetConfig->toYaml());
OpmlManager::save(new Opml(), custom_path('people.opml'));
//Save password
- $save['password'] = file_put_contents(__DIR__.'/admin/inc/pwd.inc.php', '<?php $login="admin"; $password="'.md5($_REQUEST['password']).'"; ?>');
+ $save['password'] = file_put_contents(admin_path('inc/pwd.inc.php'), '<?php $login="admin"; $password="'.md5($_POST['password']).'"; ?>');
if (0 != ($save['config'] + $save['password'])) {
$status = 'installed';