[eluser]Phil Sturgeon[/eluser]
Code:
$IN =& load_class('Input');
$LANG =& load_class('Language');
/*
* ------------------------------------------------------
* Load the app controller and local controller
* ------------------------------------------------------
*
* Note: Due to the poor object handling in PHP 4 we'll
* conditionally load different versions of the base
* class. Retaining PHP 4 compatibility requires a bit of a hack.
*
* Note: The Loader class needs to be included first
*
*/
if ( ! is_php('5.0.0'))
{
load_class('Loader', FALSE);
require(BASEPATH.'codeigniter/Base4'.EXT);
}
else
{
require(BASEPATH.'codeigniter/Base5'.EXT);
}
Spot the issue there.
get_instance() is set in Base4/Base5.php so this is not an error, just part of the architecture.
You'd be better off making a MY_Controller which calls the database, then make a MY_Language that has a set_line() method to set your new lang items.