fix function namespacing.

This commit is contained in:
Taylor Otwell
2011-11-04 19:07:13 -05:00
parent 7b22f66a94
commit 16a62193fc
3 changed files with 48 additions and 29 deletions

View File

@@ -0,0 +1,27 @@
<?php
/**
* Convert HTML characters to entities.
*
* The encoding specified in the application configuration file will be used.
*
* @param string $value
* @return string
*/
function e($value)
{
return HTML::entities($value);
}
/**
* Retrieve a language line.
*
* @param string $key
* @param array $replacements
* @param string $language
* @return string
*/
function __($key, $replacements = array(), $language = null)
{
return Lang::line($key, $replacements, $language);
}