Remove deprecated use of the EXT constant
This commit is contained in:
@@ -79,13 +79,13 @@ class MY_Lang extends CI_Lang {
|
|||||||
* @see CI_Lang::load()
|
* @see CI_Lang::load()
|
||||||
*/
|
*/
|
||||||
public function load($langfile = '', $idiom = '', $return = false, $add_suffix = true, $alt_path = '') {
|
public function load($langfile = '', $idiom = '', $return = false, $add_suffix = true, $alt_path = '') {
|
||||||
$langfile = str_replace(EXT, '', $langfile);
|
$langfile = str_replace('.php', '', $langfile);
|
||||||
|
|
||||||
if ($add_suffix == true) {
|
if ($add_suffix == true) {
|
||||||
$langfile = str_replace('_lang.', '', $langfile) . '_lang';
|
$langfile = str_replace('_lang.', '', $langfile) . '_lang';
|
||||||
}
|
}
|
||||||
|
|
||||||
$langfile .= EXT;
|
$langfile .= '.php';
|
||||||
|
|
||||||
if (in_array($langfile, $this->is_loaded, true)) {
|
if (in_array($langfile, $this->is_loaded, true)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class Assets {
|
|||||||
// $httpHeaders .= '';
|
// $httpHeaders .= '';
|
||||||
// }
|
// }
|
||||||
// $code = $httpHeaders . "\n" . $code;
|
// $code = $httpHeaders . "\n" . $code;
|
||||||
// file_put_contents(FCPATH . $this->cacheFolder . $type . '_' . md5($code) . EXT, $code);
|
// file_put_contents(FCPATH . $this->cacheFolder . $type . '_' . md5($code) . '.php', $code);
|
||||||
$output = '<script src="' . $this->CI->config->slash_item('base_url') . $filepath . '" language="javascript" type="text/javascript"></script>';
|
$output = '<script src="' . $this->CI->config->slash_item('base_url') . $filepath . '" language="javascript" type="text/javascript"></script>';
|
||||||
$output .= "\n";
|
$output .= "\n";
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ class DataMapper {
|
|||||||
$path = APPPATH . 'models';
|
$path = APPPATH . 'models';
|
||||||
|
|
||||||
// Prepare file
|
// Prepare file
|
||||||
$file = $path . '/' . $class . EXT;
|
$file = $path . '/' . $class . '.php';
|
||||||
|
|
||||||
// Check if file exists, require_once if it does
|
// Check if file exists, require_once if it does
|
||||||
if (file_exists($file))
|
if (file_exists($file))
|
||||||
@@ -222,7 +222,7 @@ class DataMapper {
|
|||||||
$recursive_path = $path . '/' . $dir;
|
$recursive_path = $path . '/' . $dir;
|
||||||
|
|
||||||
// Prepare file
|
// Prepare file
|
||||||
$file = $recursive_path . '/' . $class . EXT;
|
$file = $recursive_path . '/' . $class . '.php';
|
||||||
|
|
||||||
// Check if file exists, require_once if it does
|
// Check if file exists, require_once if it does
|
||||||
if (file_exists($file))
|
if (file_exists($file))
|
||||||
|
|||||||
Reference in New Issue
Block a user