static $needle;
if ( is_null( $s ) ) {
+ // Reset $needle for testing.
$needle = null;
return '';
}
}
}
-/**
- * Split a wiki ID into DB name and table prefix
- *
- * @param string $wiki
- *
- * @return array
- * @deprecated 1.32
- */
-function wfSplitWikiID( $wiki ) {
- $bits = explode( '-', $wiki, 2 );
- if ( count( $bits ) < 2 ) {
- $bits[] = '';
- }
- return $bits;
-}
-
/**
* Get a Database object.
*