mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
dont touch system files
This commit is contained in:
parent
f6bdbbe307
commit
10e27eadbf
58
htdocs/application/helpers/language_helper.php
Normal file
58
htdocs/application/helpers/language_helper.php
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||||
|
/**
|
||||||
|
* CodeIgniter
|
||||||
|
*
|
||||||
|
* An open source application development framework for PHP 5.1.6 or newer
|
||||||
|
*
|
||||||
|
* @package CodeIgniter
|
||||||
|
* @author ExpressionEngine Dev Team
|
||||||
|
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
|
||||||
|
* @license http://codeigniter.com/user_guide/license.html
|
||||||
|
* @link http://codeigniter.com
|
||||||
|
* @since Version 1.0
|
||||||
|
* @filesource
|
||||||
|
*/
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CodeIgniter Language Helpers
|
||||||
|
*
|
||||||
|
* @package CodeIgniter
|
||||||
|
* @subpackage Helpers
|
||||||
|
* @category Helpers
|
||||||
|
* @author ExpressionEngine Dev Team
|
||||||
|
* @link http://codeigniter.com/user_guide/helpers/language_helper.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Lang
|
||||||
|
*
|
||||||
|
* Fetches a language variable and optionally outputs a form label
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @param string the language line
|
||||||
|
* @param string the id of the form element
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
if ( ! function_exists('lang'))
|
||||||
|
{
|
||||||
|
function lang($index, $id = '')
|
||||||
|
{
|
||||||
|
$CI =& get_instance();
|
||||||
|
$line = $CI->lang->line($index);
|
||||||
|
|
||||||
|
if ($id != '')
|
||||||
|
{
|
||||||
|
$line = '<label for="'.$id.'">'.$line."</label>";
|
||||||
|
}
|
||||||
|
|
||||||
|
return ($line != '' ? $line : '[' . $index . ']');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
/* End of file language_helper.php */
|
||||||
|
/* Location: ./system/helpers/language_helper.php */
|
@ -39,20 +39,20 @@
|
|||||||
*/
|
*/
|
||||||
if ( ! function_exists('lang'))
|
if ( ! function_exists('lang'))
|
||||||
{
|
{
|
||||||
function lang($index, $id = '')
|
function lang($line, $id = '')
|
||||||
{
|
{
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
$line = $CI->lang->line($index);
|
$line = $CI->lang->line($line);
|
||||||
|
|
||||||
if ($id != '')
|
if ($id != '')
|
||||||
{
|
{
|
||||||
$line = '<label for="'.$id.'">'.$line."</label>";
|
$line = '<label for="'.$id.'">'.$line."</label>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return ($line != '' ? $line : '[' . $index . ']');
|
return $line;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
/* End of file language_helper.php */
|
/* End of file language_helper.php */
|
||||||
/* Location: ./system/helpers/language_helper.php */
|
/* Location: ./system/helpers/language_helper.php */
|
Loading…
x
Reference in New Issue
Block a user