Fix on Static pages plugin

This commit is contained in:
Diego Najar 2018-03-07 19:09:22 +01:00
parent b9b6d811e3
commit fc70852a11
2 changed files with 1 additions and 17 deletions

View File

@ -162,7 +162,7 @@ $(document).ready(function() {
<script>
$( "#bludit-logo" ).dblclick(function() {
alert( "Hey! what are you doing ?" );
alert( "happy birthday! first commit 2015-03-08 (04cd68561b5bb0d1528bf80004192265fc0e335c)" );
});
</script>

View File

@ -306,11 +306,6 @@ function install($adminPassword, $email='', $timezone)
error_log($errorText, 0);
}
if (!mkdir(PATH_PLUGINS_DATABASES.'version', $dirpermissions, true)) {
$errorText = 'Error when trying to created the directory=>'.PATH_PLUGINS_DATABASES.'version';
error_log($errorText, 0);
}
// UPLOADS directories
if (!mkdir(PATH_UPLOADS_PROFILES, $dirpermissions, true)) {
$errorText = 'Error when trying to created the directory=>'.PATH_UPLOADS_PROFILES;
@ -550,17 +545,6 @@ function install($adminPassword, $email='', $timezone)
LOCK_EX
);
// File plugins/version/db.php
file_put_contents(
PATH_PLUGINS_DATABASES.'version'.DS.'db.php',
$dataHead.json_encode(
array(
'position'=>1
),
JSON_PRETTY_PRINT),
LOCK_EX
);
// Page create-your-own-content
$data = 'Title: '.$Language->get('example-page-1-title').PHP_EOL.'Content: '.PHP_EOL.$Language->get('example-page-1-content');
file_put_contents(PATH_PAGES.$Language->get('example-page-1-slug').DS.FILENAME, $data, LOCK_EX);