Gremlins in the options machine.

git-svn-id: https://develop.svn.wordpress.org/trunk@1206 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-04-28 20:31:41 +00:00
parent 737aa43879
commit 2608fbf8a9
5 changed files with 7 additions and 9 deletions

View File

@@ -50,7 +50,6 @@ function mysql2date($dateformatstring, $mysqlstring, $use_b2configmonthsdays = 1
}
function current_time($type, $gmt = 0) {
$time_difference = get_settings('time_difference');
switch ($type) {
case 'mysql':
if ($gmt) $d = gmdate('Y-m-d H:i:s');
@@ -300,9 +299,6 @@ function get_settings($setting) {
return false;
}
// until we switch to using 'gmt_offset' everywhere
$setting = str_replace('time_difference', 'gmt_offset', $setting);
if ( (empty($cache_settings)) ) {
$settings = get_alloptions();
$cache_settings = $settings;