Changeset 2304 for branches

Show
Ignore:
Timestamp:
12/17/10 09:14:47 (17 months ago)
Author:
nick_ramsay
Message:

[1.5] Removed "messaging" table creation; Updated old comments in Messages class.

Location:
branches/1.5
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/install/index.php

    r2303 r2304  
    499499        } else { 
    500500 
    501                 $tables = array('blocked', 'categories', 'comments', 'messaging', 'miscdata', 'plugins', 'pluginhooks', 'pluginsettings', 'posts', 'postmeta', 'postvotes', 'settings', 'tags', 'tempdata', 'tokens', 'users', 'usermeta', 'useractivity', 'widgets'); 
     501                $tables = array('blocked', 'categories', 'comments', 'miscdata', 'plugins', 'pluginhooks', 'pluginsettings', 'posts', 'postmeta', 'postvotes', 'settings', 'tags', 'tempdata', 'tokens', 'users', 'usermeta', 'useractivity', 'widgets'); 
    502502 
    503503                // delete *all* tables in db: 
  • branches/1.5/install/install_tables.php

    r2303 r2304  
    112112                $db->query($sql);  
    113113        } 
    114                  
    115                  
    116         // MESSAGING TABLE 
    117          
    118                 if ($table_name == "messaging") { 
    119                 //echo "table doesn't exist. Stopping before creation."; exit; 
    120                 $sql = "CREATE TABLE `" . DB_PREFIX . $table_name . "` ( 
    121                         `message_id` int(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, 
    122                         `message_updatedts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 
    123                         `message_archived` enum('Y','N') NOT NULL DEFAULT 'N', 
    124                         `message_from` int(20) NOT NULL DEFAULT 0, 
    125                         `message_to` int(20) NOT NULL DEFAULT 0, 
    126                         `message_date` timestamp NULL, 
    127                         `message_subject` varchar(255) NOT NULL DEFAULT '', 
    128                         `message_content` text NULL, 
    129                         `message_read` tinyint(1) NOT NULL DEFAULT '0', 
    130                         `message_inbox` tinyint(1) NOT NULL DEFAULT '1', 
    131                         `message_outbox` tinyint(1) NOT NULL DEFAULT '1', 
    132                         `message_updateby` int(20) NOT NULL DEFAULT 0, 
    133                         INDEX  (`message_archived`) 
    134                 ) ENGINE=" . DB_ENGINE . " DEFAULT CHARSET=" . DB_CHARSET . " COLLATE=" . DB_COLLATE . " COMMENT='Messaging';"; 
    135                 echo $lang['install_step2_creating_table'] . ": '" . DB_PREFIX . $table_name . "'...<br />\n"; 
    136                 $db->query($sql); 
    137                 } 
    138114 
    139115 
  • branches/1.5/libs/Messages.php

    r1662 r2304  
    3535         *  Usage: 
    3636         *              Longhand: 
    37          *                      $this->hotaru->message = "This is a message"; 
    38          *                      $this->hotaru->messageType = "green"; 
    39          *                      $this->hotaru->showMessage(); 
     37         *                      $h->message = "This is a message"; 
     38         *                      $h->messageType = "green"; 
     39         *                      $h->showMessage(); 
    4040         * 
    4141         *              Shorthand: 
    42          *                      $this->hotaru->showMessage("This is a message", "green"); 
     42         *                      $h->showMessage("This is a message", "green"); 
    4343         */ 
    4444        public function showMessage($h, $msg = '', $msg_type = 'green') 
     
    5959         * 
    6060         *  Usage: 
    61          *        $this->hotaru->messages['This is a message'] = "green"; 
    62          *        $this->hotaru->showMessages(); 
     61         *              $h->messages['This is a message'] = "green"; 
     62         *              $h->showMessages(); 
    6363         */ 
    6464        public function showMessages($h)