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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
a9aebfab
Commit
a9aebfab
authored
Jul 29, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor message improvements
parent
6d1dd1d5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
MimeTypeController.php
build/controllers/MimeTypeController.php
+5
-0
Module.php
extensions/debug/Module.php
+1
-2
No files found.
build/controllers/MimeTypeController.php
View file @
a9aebfab
...
...
@@ -9,6 +9,7 @@ namespace yii\build\controllers;
use
Yii
;
use
yii\console\Controller
;
use
yii\helpers\Console
;
use
yii\helpers\VarDumper
;
/**
...
...
@@ -33,7 +34,10 @@ class MimeTypeController extends Controller
if
(
$outFile
===
null
)
{
$outFile
=
Yii
::
getAlias
(
'@yii/helpers/mimeTypes.php'
);
}
$this
->
stdout
(
'downloading mime-type file from apache httpd repository...'
);
if
(
$content
=
file_get_contents
(
'http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=co'
))
{
$this
->
stdout
(
"done.
\n
"
,
Console
::
FG_GREEN
);
$this
->
stdout
(
"generating file
$outFile
..."
);
$mimeMap
=
[];
foreach
(
explode
(
"
\n
"
,
$content
)
as
$line
)
{
$line
=
trim
(
$line
);
...
...
@@ -65,6 +69,7 @@ return $array;
EOD;
file_put_contents
(
$outFile
,
$content
);
$this
->
stdout
(
"done.
\n
"
,
Console
::
FG_GREEN
);
}
else
{
$this
->
stderr
(
"Failed to download mime.types file from apache SVN.
\n
"
);
}
...
...
extensions/debug/Module.php
View file @
a9aebfab
...
...
@@ -194,8 +194,7 @@ class Module extends \yii\base\Module implements BootstrapInterface
return
true
;
}
}
Yii
::
warning
(
'Access to debugger is denied due to IP address restriction. The requested IP is '
.
$ip
,
__METHOD__
);
Yii
::
warning
(
'Access to debugger is denied due to IP address restriction. The requesting IP address is '
.
$ip
,
__METHOD__
);
return
false
;
}
...
...
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