Make WordPress Core

Changeset 229


Ignore:
Timestamp:
06/15/2003 10:48:49 PM (21 years ago)
Author:
mikelittle
Message:

tablesettings no longer used

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2functions.php

    r216 r229  
    472472
    473473function get_settings($setting) {
    474     global $tablesettings, $wpdb, $cache_settings, $use_cache, $querycount;
     474    global $wpdb, $cache_settings, $use_cache, $querycount;
    475475    if ((empty($cache_settings)) OR (!$use_cache)) {
    476476        $settings = get_alloptions();
     
    498498   
    499499function get_postdata($postid) {
    500     global $tableusers, $tablesettings, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb;
     500    global $tableusers, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb;
    501501    $post = $wpdb->get_row("SELECT * FROM $tableposts WHERE ID = $postid");
    502502    ++$querycount;
  • trunk/wp-admin/b2header.php

    r212 r229  
    1616get_currentuserinfo();
    1717
    18 $request = "SELECT * FROM $tablesettings";
    19 $result = mysql_query($request);
    20 $querycount++;
    21 while($row = mysql_fetch_object($result)) {
    22     $posts_per_page=$row->posts_per_page;
    23     $what_to_show=$row->what_to_show;
    24     $archive_mode=$row->archive_mode;
    25     $time_difference=$row->time_difference;
    26     $date_format=stripslashes($row->date_format);
    27     $time_format=stripslashes($row->time_format);
    28 }
     18$posts_per_page=get_settings('posts_per_page');
     19$what_to_show=get_settings('what_to_show');
     20$archive_mode=get_settings('archive_mode');
     21$time_difference=get_settings('time_difference');
     22$date_format=stripslashes(get_settings('date_format'));
     23$time_format=stripslashes(get_settings('time_format'));
    2924
    3025// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
  • trunk/wp-admin/b2sidebar.php

    r199 r229  
    2121    die ("Cheatin' uh ?");
    2222
    23 $request = " SELECT * FROM $tablesettings ";
    24 $result = mysql_query($request);
    25 while($row = mysql_fetch_object($result)) {
    26     $time_difference=$row->time_difference;
    27 }
     23$time_difference=get_settings('time_difference');
    2824
    2925if ($a=="b") {
Note: See TracChangeset for help on using the changeset viewer.