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
2fccd566
Commit
2fccd566
authored
May 20, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test break about AssetController.
parent
a5850657
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AssetController.php
yii/console/controllers/AssetController.php
+5
-5
No files found.
yii/console/controllers/AssetController.php
View file @
2fccd566
...
...
@@ -256,7 +256,7 @@ class AssetController extends Controller
foreach
(
$target
->
depends
as
$name
)
{
if
(
isset
(
$bundles
[
$name
]))
{
foreach
(
$bundles
[
$name
]
->
$type
as
$file
)
{
$inputFiles
[]
=
$bundles
[
$name
]
->
basePath
.
$file
;
$inputFiles
[]
=
$bundles
[
$name
]
->
basePath
.
'/'
.
$file
;
}
}
else
{
throw
new
Exception
(
"Unknown bundle:
$name
"
);
...
...
@@ -383,13 +383,13 @@ EOD
if
(
is_string
(
$this
->
jsCompressor
))
{
$tmpFile
=
$outputFile
.
'.tmp'
;
$this
->
combineJsFiles
(
$inputFiles
,
$tmpFile
);
$log
=
shell_exec
(
strtr
(
$this
->
jsCompressor
,
array
(
echo
shell_exec
(
strtr
(
$this
->
jsCompressor
,
array
(
'{from}'
=>
escapeshellarg
(
$tmpFile
),
'{to}'
=>
escapeshellarg
(
$outputFile
),
)));
@
unlink
(
$tmpFile
);
}
else
{
$log
=
call_user_func
(
$this
->
jsCompressor
,
$this
,
$inputFiles
,
$outputFile
);
call_user_func
(
$this
->
jsCompressor
,
$this
,
$inputFiles
,
$outputFile
);
}
if
(
!
file_exists
(
$outputFile
))
{
throw
new
Exception
(
"Unable to compress JavaScript files into '
{
$outputFile
}
'."
);
...
...
@@ -412,13 +412,13 @@ EOD
if
(
is_string
(
$this
->
cssCompressor
))
{
$tmpFile
=
$outputFile
.
'.tmp'
;
$this
->
combineCssFiles
(
$inputFiles
,
$tmpFile
);
$log
=
shell_exec
(
strtr
(
$this
->
cssCompressor
,
array
(
echo
shell_exec
(
strtr
(
$this
->
cssCompressor
,
array
(
'{from}'
=>
escapeshellarg
(
$tmpFile
),
'{to}'
=>
escapeshellarg
(
$outputFile
),
)));
@
unlink
(
$tmpFile
);
}
else
{
$log
=
call_user_func
(
$this
->
cssCompressor
,
$this
,
$inputFiles
,
$outputFile
);
call_user_func
(
$this
->
cssCompressor
,
$this
,
$inputFiles
,
$outputFile
);
}
if
(
!
file_exists
(
$outputFile
))
{
throw
new
Exception
(
"Unable to compress CSS files into '
{
$outputFile
}
'."
);
...
...
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