Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
1a0a62b6
Commit
1a0a62b6
authored
Feb 14, 2012
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report which directory chmod failed on as an exception.
parent
68c7cb0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
String.php
lib/Dwoo/Template/String.php
+6
-1
No files found.
lib/Dwoo/Template/String.php
View file @
1a0a62b6
...
@@ -490,7 +490,12 @@ class Dwoo_Template_String implements Dwoo_ITemplate
...
@@ -490,7 +490,12 @@ class Dwoo_Template_String implements Dwoo_ITemplate
$folders
=
explode
(
'/'
,
trim
(
$path
,
'/'
));
$folders
=
explode
(
'/'
,
trim
(
$path
,
'/'
));
foreach
(
$folders
as
$folder
)
{
foreach
(
$folders
as
$folder
)
{
$baseDir
.=
$folder
.
DIRECTORY_SEPARATOR
;
$baseDir
.=
$folder
.
DIRECTORY_SEPARATOR
;
chmod
(
$baseDir
,
$chmod
);
if
(
!
chmod
(
$baseDir
,
$chmod
))
{
throw
new
Exception
(
"Unable to chmod "
.
"
$baseDir
to
$chmod
: "
.
print_r
(
error_get_last
(),
TRUE
));
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment