Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9900
Modified Files:
serendipity_config.inc.php
Log Message:
Fix serious plugin hook_event bug. Plugins were cached because of the introduction of a new hook too early in sequence, resulting in weird behaviour with plugin configuration (see mail by rasmus)
For the multilingual plugin to be able to function properly, a new autodetection routine has been put in place. I think this even acts nicely in the core serendipity, but for the future we may want to move it to a plugin somehow (I don't see a way currently)
Index: serendipity_config.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_config.inc.php,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- serendipity_config.inc.php 10 Feb 2005 15:03:45 -0000 1.144
+++ serendipity_config.inc.php 16 Feb 2005 12:36:26 -0000 1.145
@@ -209,7 +209,7 @@
* If a user is logged in, fetch his preferences. He possibly wants to have a different language
*/
-serendipity_plugin_api::hook_event('frontend_configure_start', $serendipity);
+$serendipity['lang'] = serendipity_getSessionLanguage(); // @see function declaration for todo
if (isset($_SESSION['serendipityAuthorid'])) {
serendipity_load_configuration($_SESSION['serendipityAuthorid']);
|