Browse Source

Moved the check if we have mysql-vhost config for this host AFTER the patch function

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@782 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.6
Jan Kneschke 17 years ago
parent
commit
c4fa6928b6
  1. 4
      src/mod_mysql_vhost.c

4
src/mod_mysql_vhost.c

@ -328,10 +328,10 @@ CONNECTION_FUNC(mod_mysql_vhost_handle_docroot) {
/* no host specified? */
if (!con->uri.authority->used) return HANDLER_GO_ON;
if (!p->conf.mysql) return HANDLER_GO_ON;
mod_mysql_vhost_patch_connection(srv, con, p);
if (!p->conf.mysql) return HANDLER_GO_ON;
/* sets up connection data if not done yet */
c = mod_mysql_vhost_connection_data(srv, con, p_d);

Loading…
Cancel
Save