Update of /cvsroot/php-blog/serendipity/include/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28062/include/admin
Modified Files:
upgrader.inc.php
Log Message:
* Install 'Browsercompatibility' plugin by default, may be used for other compatibility issues in the future as well
* No longer install track exits plugin by default (discussed + requested on the mailinglist)
* Let the upgrader allow calling functions with multiple parameters
Index: upgrader.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/admin/upgrader.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- upgrader.inc.php 10 Dec 2004 10:59:06 -0000 1.6
+++ upgrader.inc.php 16 Dec 2004 15:45:31 -0000 1.7
@@ -107,6 +107,13 @@
'function' => 'serendipity_removeObsoleteVars',
'title' => 'Removal of obsolete configuration variables',
'desc' => 'Because of the new configuration parsing methods, some database variables are now only stored in serendipity_config_local.inc.php. Those obsolete variables will be removed from the database'),
+
+ array('version' => '0.8-alpha8',
+ 'function' => array('serendipity_plugin_api', 'create_plugin_instance'),
+ 'arguments' => array('serendipity_event_browsercompatibility', null, 'event'),
+ 'arg_array' => true,
+ 'title' => 'Plugin for Browser Compatibility',
+ 'desc' => 'Includes some CSS-behaviours and other functions to maximize browser compatibility'),
);
/* Fetch SQL files which needs to be run */
@@ -162,7 +169,11 @@
if (empty($task['arguments'])) {
call_user_func($task['function']);
} else {
- call_user_func($task['function'], $task['arguments']);
+ if ($task['arg_array']) {
+ call_user_func_array($task['function'], $task['arguments']);
+ } else {
+ call_user_func($task['function'], $task['arguments']);
+ }
}
} else {
$errors[] = 'Unable to call '. $task['function'];
|