projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48e011f
)
Fixed the temp-folder detection in the install.php
author
RouL
<roul@codingcorner.info>
Thu, 14 Jul 2011 17:16:56 +0000
(19:16 +0200)
committer
RouL
<roul@codingcorner.info>
Thu, 14 Jul 2011 17:16:56 +0000
(19:16 +0200)
wcfsetup/install.php
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install.php
b/wcfsetup/install.php
index c4059d8ddedac6c8513fc933655daa213c8ed14d..f47ddac9d635d3bf82716bc6d3e3fc7879e9354a 100644
(file)
--- a/
wcfsetup/install.php
+++ b/
wcfsetup/install.php
@@
-248,11
+248,11
@@
class BasicFileUtil {
}
\r
}
\r
\r
- $dir = INSTALL_SCRIPT_DIR . 'tmp/' . $tmpDir;
\r
+ $dir = INSTALL_SCRIPT_DIR . 'tmp/' . $tmpDir
Name
;
\r
@mkdir($dir, 0777);
\r
@chmod($dir, 0777);
\r
\r
- if (
@file_exists($dir) &&
@is_writable($dir)) {
\r
+ if (
!@file_exists($dir) || !
@is_writable($dir)) {
\r
$tmpDir = explode('/', $dir);
\r
array_pop($tmpDir);
\r
$dir = implode('/', $tmpDir);
\r