fix dumb php problem
This commit is contained in:
parent
cac1a87e04
commit
ca0ad2b9c8
@ -1 +1,3 @@
|
||||
v0.0.7. Fix dumb issue with func_get_args() not being able to be used as a function parameter. Yay PHP!
|
||||
|
||||
v0.0.6. Added better asset tags, cachebusters, code cleanup, better documentation, upgrade functionality.
|
||||
|
7
Rakefile
7
Rakefile
@ -31,3 +31,10 @@ namespace :blueprint do
|
||||
FileUtils.rm_r 'blueprint'
|
||||
end
|
||||
end
|
||||
|
||||
namespace :php do
|
||||
desc "Syntax check trivial.php"
|
||||
task :syntax_check do
|
||||
system %{php -l lib/trivial.php}
|
||||
end
|
||||
end
|
||||
|
@ -85,14 +85,16 @@ function render_error($error) {
|
||||
* Render style link tags.
|
||||
*/
|
||||
function styles() {
|
||||
return head_component('style', func_get_args());
|
||||
$args = func_get_args();
|
||||
return head_component('style', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render script tags.
|
||||
*/
|
||||
function scripts() {
|
||||
return head_component('script', func_get_args());
|
||||
$args = func_get_args();
|
||||
return head_component('script', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user