From ca0ad2b9c8b7fa755b23bc800ddea9c5528c4d47 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 18 May 2010 23:20:14 -0400 Subject: [PATCH] fix dumb php problem --- CHANGELOG | 2 ++ Rakefile | 7 +++++++ lib/trivial.php | 6 ++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 5fc3036..901b894 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/Rakefile b/Rakefile index b068983..af050e6 100644 --- a/Rakefile +++ b/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 diff --git a/lib/trivial.php b/lib/trivial.php index 8949ed0..980e498 100644 --- a/lib/trivial.php +++ b/lib/trivial.php @@ -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); } /**