From 0dc43490a638e3d0bc8a736976b455606c17f87e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 10 Nov 2011 22:10:18 -0600 Subject: [PATCH] moved functions to helpers file. --- laravel/bootstrap/core.php | 2 +- laravel/{bootstrap/functions.php => helpers.php} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename laravel/{bootstrap/functions.php => helpers.php} (80%) diff --git a/laravel/bootstrap/core.php b/laravel/bootstrap/core.php index 27da5ec0..1c055ac7 100644 --- a/laravel/bootstrap/core.php +++ b/laravel/bootstrap/core.php @@ -78,4 +78,4 @@ * Define a few global convenience functions to make our lives as * Laravel PHP developers a little more easy and enjoyable. */ -require 'functions'.EXT; \ No newline at end of file +require SYS_PATH.'helpers'.EXT; \ No newline at end of file diff --git a/laravel/bootstrap/functions.php b/laravel/helpers.php similarity index 80% rename from laravel/bootstrap/functions.php rename to laravel/helpers.php index 7a775c8b..c37a9840 100644 --- a/laravel/bootstrap/functions.php +++ b/laravel/helpers.php @@ -10,7 +10,7 @@ */ function e($value) { - return HTML::entities($value); + return Laravel\HTML::entities($value); } /** @@ -23,5 +23,5 @@ function e($value) */ function __($key, $replacements = array(), $language = null) { - return Lang::line($key, $replacements, $language); + return Laravel\Lang::line($key, $replacements, $language); } \ No newline at end of file