Tweak code style a little more: add more escaping and make the default value for...
[lhc/web/wiklou.git] / includes / GlobalFunctions.php
index fe82f1e..074014a 100644 (file)
@@ -2674,25 +2674,4 @@ function wfGenerateToken( $salt = '' ) {
        $salt = serialize($salt);
 
        return md5( mt_rand( 0, 0x7fffffff ) . $salt );
-}
-
-/**
- * Create table name for shared database.
- *
- * @access public
- * @author eloy@wikia
- *
- * @param string $table: table name
- *
- * @return string: table name with additional shared database
- */
-function wfSharedTable( $table, $useExternal = true ) {
-       global $wgSharedDB, $wgExternalSharedDB;
-
-       if ($useExternal && !empty( $wgExternalSharedDB )) {
-               return "`$wgExternalSharedDB`.`$table`";
-       } elseif (!empty( $wgSharedDB )) {
-               return "`$wgSharedDB`.`$table`";
-       } else
-               return "`$table`";
 }
\ No newline at end of file