Skip to content

Commit

Permalink
Fixes issue #370
Browse files Browse the repository at this point in the history
  • Loading branch information
n00dles committed Nov 6, 2012
1 parent dc28e6c commit baa9c1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
18 changes: 0 additions & 18 deletions admin/inc/common.php
Expand Up @@ -58,24 +58,6 @@
define('GSCACHEPATH', GSROOTPATH. 'data/cache/');
define('GSAUTOSAVEPATH', GSROOTPATH. 'data/pages/autosave/');

/* create new folders */
if (!file_exists(GSCACHEPATH)) {
if (defined('GSCHMOD')) {
$chmod_value = GSCHMOD;
} else {
$chmod_value = 0755;
}
mkdir(GSCACHEPATH, $chmod_value);
}

if (!file_exists(GSAUTOSAVEPATH)) {
if (defined('GSCHMOD')) {
$chmod_value = GSCHMOD;
} else {
$chmod_value = 0755;
}
mkdir(GSAUTOSAVEPATH, $chmod_value);
}


/**
Expand Down
4 changes: 2 additions & 2 deletions admin/install.php
Expand Up @@ -30,12 +30,12 @@
GSBACKUPSPATH.'pages/',
GSBACKUPSPATH.'zip/',
GSBACKUSERSPATH,
GSUSERSPATH
GSUSERSPATH,
GSDATAPAGESPATH.'autosave/'
);

foreach ($dirsArray as $dir) {
$tmpfile = GSADMININCPATH.'tmp/tmp-404.xml';

if (file_exists($dir)) {
chmod($dir, 0755);
$result_755 = copy($tmpfile, $dir .'tmp.tmp');
Expand Down

0 comments on commit baa9c1e

Please sign in to comment.