Permalink
Browse files

Make 2nd param of config_obsolete() optional

Ports commit 96efb7b to master.

Note: the main issue referenced in #12884 had already been
fixed in 47e65b2
  • Loading branch information...
1 parent 05947d3 commit 9e0ae930f8527c08bb834fe6f05a80a236dc0a29 @dregad dregad committed Oct 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/config_api.php
View
@@ -532,7 +532,7 @@ function config_flush_cache( $p_option = '', $p_user = ALL_USERS, $p_project = A
# ------------------
# Checks if an obsolete configuration variable is still in use. If so, an error
# will be generated and the script will exit. This is called from admin_check.php.
-function config_obsolete( $p_var, $p_replace ) {
+function config_obsolete( $p_var, $p_replace = '' ) {
# @@@ we could trigger a WARNING here, once we have errors that can
# have extra data plugged into them (we need to give the old and

0 comments on commit 9e0ae93

Please sign in to comment.