Re: [pLog-General] Current status ... moving to 0.2
Brought to you by:
jondaley
From: Oscar R. <os...@re...> - 2003-09-20 14:31:18
|
That means that the 'db_prefix' setting is not available in the plog_config table... Guess I forgot to add it :S INSERT INTO plog_config(config_key,config_value,value_type) VALUES ('db_prefix','plog_',3); That should fix it. If you ever wonder why my code was working even though this was missing, it is because the function getPrefix() from model.class.php does something like this $this->_config->getValue( "db_prefix", DEFAULT_DB_PREFIX) That is, if 'db_prefix' is undefined in the configuration, then return the value of DEFAULT_DB_PREFIX, so that at least we get something. And that's also why I didn't notice this bug before... Thanks :) Regards, Oscar. On Saturday 20 September 2003 17:24, Darren Greer wrote: > I found my issue with the Haiku plugin. This no longer returns the DB > Prefix: > > $config = new Config(); > $dbPrefix = $config->getValue( "db_prefix" ); > > So, I look for an example in your code that might be doing it differently > now...and I find this in users.class.php: > > $this->getPrefix() > > And it is including this: > > include_once( "model.class.php" ); > > If I look at that file, I see: > > define( DEFAULT_DB_PREFIX, "plog_" ); > > Do we have to hard-code it now? Do I need to include model.class.php in > my plugin now? > > Thanks, > > Darren > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > pLog-General mailing list > pLo...@li... > https://lists.sourceforge.net/lists/listinfo/plog-general |