Index: trunk/extensions/Drafts/Drafts.php |
— | — | @@ -77,11 +77,9 @@ |
78 | 78 | function efCheckSchema() { |
79 | 79 | // Get a connection |
80 | 80 | $db = wfGetDB( DB_MASTER ); |
81 | | - // Get statements from file |
82 | | - $statement = file_get_contents( dirname( __FILE__ ) . '/Drafts.sql' ); |
83 | 81 | // Create table if it doesn't exist |
84 | 82 | if ( !$db->tableExists( 'drafts' ) ) { |
85 | | - $db->query( $statement, __METHOD__); |
| 83 | + $db->sourceFile( dirname( __FILE__ ) . '/Drafts.sql' ); |
86 | 84 | } |
87 | 85 | // Continue |
88 | 86 | return true; |