vanilla/vanilla — pull request #2235 by imnotjames (2014-11-05 06:05:19+00:00)
Title: Pass $Database into Structure when creating it inside a Database object

As it was, the Structure doesn't initialize with the correct database
and even sets the wrong prefix incorrectly. This meant that the
standard database may have been initialized unnecessarily as well.

This patch passes the database object as an argument to the constructor.