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 authored and mantis committed Oct 6, 2013
1 parent 88d9264 commit d2f3289
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions login_page.php
Expand Up @@ -251,6 +251,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' . DIRECTORY_SEPARATOR . 'schema.php' );
$t_upgrades_reqd = count( $upgrade ) - 1;

Expand Down

0 comments on commit d2f3289

Please sign in to comment.