very small patch from looking at drupal_install_system as part of #340052: speedup simpletest by preloading the registry.
* we call drupal_init_database twice for no apparent reason
* drupal_install_init_database has a static variable that appears to be guarding against running its body twice, but its not updated on the first run
attached patch fixes these issues.
| Comment | File | Size | Author |
|---|---|---|---|
| dont_init_db_twice.patch | 1.06 KB | Anonymous (not verified) |
Comments
Comment #1
swentel commentedInstalling works after this patch, let's hope the testbot is happy too :)
Comment #2
webchickNice catch; this was completely silly.
Committed to HEAD.