fix dumb php problem

This commit is contained in:
John Bintz 2010-05-18 23:20:14 -04:00
parent cac1a87e04
commit ca0ad2b9c8
3 changed files with 13 additions and 2 deletions

View File

@ -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. v0.0.6. Added better asset tags, cachebusters, code cleanup, better documentation, upgrade functionality.

View File

@ -31,3 +31,10 @@ namespace :blueprint do
FileUtils.rm_r 'blueprint' FileUtils.rm_r 'blueprint'
end end
end end
namespace :php do
desc "Syntax check trivial.php"
task :syntax_check do
system %{php -l lib/trivial.php}
end
end

View File

@ -85,14 +85,16 @@ function render_error($error) {
* Render style link tags. * Render style link tags.
*/ */
function styles() { function styles() {
return head_component('style', func_get_args()); $args = func_get_args();
return head_component('style', $args);
} }
/** /**
* Render script tags. * Render script tags.
*/ */
function scripts() { function scripts() {
return head_component('script', func_get_args()); $args = func_get_args();
return head_component('script', $args);
} }
/** /**