Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
3acd77b8
Commit
3acd77b8
authored
Jun 10, 2013
by
Klimov Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"self" replaced by "static" at "yii\helpers\base\FileHelper::mkdir()".
parent
a5480de8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
FileHelper.php
framework/yii/helpers/base/FileHelper.php
+7
-7
No files found.
framework/yii/helpers/base/FileHelper.php
View file @
3acd77b8
...
...
@@ -95,7 +95,7 @@ class FileHelper
}
}
return
$checkExtension
?
s
elf
::
getMimeTypeByExtension
(
$file
)
:
null
;
return
$checkExtension
?
s
tatic
::
getMimeTypeByExtension
(
$file
)
:
null
;
}
/**
...
...
@@ -172,23 +172,23 @@ class FileHelper
/**
* Removes a directory recursively.
* @param string $dir
ectory
to be deleted recursively.
* @param string $dir to be deleted recursively.
*/
public
static
function
removeDirectory
(
$dir
ectory
)
public
static
function
removeDirectory
(
$dir
)
{
$items
=
glob
(
$dir
ectory
.
DIRECTORY_SEPARATOR
.
'{,.}*'
,
GLOB_MARK
|
GLOB_BRACE
);
$items
=
glob
(
$dir
.
DIRECTORY_SEPARATOR
.
'{,.}*'
,
GLOB_MARK
|
GLOB_BRACE
);
foreach
(
$items
as
$item
)
{
if
(
basename
(
$item
)
==
'.'
||
basename
(
$item
)
==
'..'
)
{
continue
;
}
if
(
substr
(
$item
,
-
1
)
==
DIRECTORY_SEPARATOR
)
{
s
elf
::
removeDirectory
(
$item
);
s
tatic
::
removeDirectory
(
$item
);
}
else
{
unlink
(
$item
);
}
}
if
(
is_dir
(
$dir
ectory
))
{
rmdir
(
$dir
ectory
);
if
(
is_dir
(
$dir
))
{
rmdir
(
$dir
);
}
}
...
...
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