3 * This file contains ancient db-related functions that have been deprecated. Do
4 * not use them. Please find the appropriate replacements.
10 * @deprecated Use DatabaseBase::sourceFile(). Will probably be removed in 1.19
12 function dbsource( $fname, $db = false ) {
13 wfDeprecated( __METHOD__ );
15 $db = wfGetDB( DB_MASTER );
17 $error = $db->sourceFile( $fname );
18 if ( $error !== true ) {
25 * @deprecated Use DatabaseBase::patchPath(). Will probably be removed in 1.18
27 function archive( $name ) {
28 wfDeprecated( __METHOD__ );
29 $dbr = wfGetDB( DB_SLAVE );
30 return $dbr->patchPath( $name );