Skip to content

Commit

Permalink
login_page needs to pull in install_helper_functions_api
Browse files Browse the repository at this point in the history
To read schema.php, a function definition for db_null_date() is
required. This function is defined within
install_helper_functions_api.php.

Therefore login_page.php needs to include install_helper_functions_api
prior to reading the schema.
  • Loading branch information
davidhicks committed Feb 25, 2012
1 parent e63fff3 commit 6435fe9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/login_page.php
Expand Up @@ -249,6 +249,8 @@
}

# Check for db upgrade for versions > 1.0.0 using new installer and schema
# Note: install_helper_functions_api.php required for db_null_date() function definition
require_api( 'install_helper_functions_api.php' );
require_once( 'admin/schema.php' );
$t_upgrades_reqd = count( $upgrade ) - 1;

Expand Down

0 comments on commit 6435fe9

Please sign in to comment.