Languages fixes

This commit is contained in:
dignajar 2015-07-16 00:03:44 -03:00
parent ad1810c7b9
commit 8e2b0f59ab
1 changed files with 8 additions and 1 deletions

View File

@ -121,7 +121,7 @@ function install($adminPassword, $email)
error_log($errorText, 0); error_log($errorText, 0);
} }
if(!mkdir(PATH_PLUGINS_DATABASES, $dirpermissions, true)) if(!mkdir(PATH_PLUGINS_DATABASES.'pages', $dirpermissions, true))
{ {
$errorText = 'Error when trying to created the directory=>'.PATH_PLUGINS_DATABASES; $errorText = 'Error when trying to created the directory=>'.PATH_PLUGINS_DATABASES;
error_log($errorText, 0); error_log($errorText, 0);
@ -210,6 +210,13 @@ function install($adminPassword, $email)
file_put_contents(PATH_DATABASES.'users.php', $dataHead.json_encode($data, JSON_PRETTY_PRINT), LOCK_EX); file_put_contents(PATH_DATABASES.'users.php', $dataHead.json_encode($data, JSON_PRETTY_PRINT), LOCK_EX);
// File plugins/pages/db.php
$data = array(
'homeLink'=>true
);
file_put_contents(PATH_PLUGINS_DATABASES.'pages'.DS.'db.php', $dataHead.json_encode($data, JSON_PRETTY_PRINT), LOCK_EX);
// File index.txt for error page // File index.txt for error page
$data = 'Title: Error $data = 'Title: Error
Content: The page has not been found.'; Content: The page has not been found.';