  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: database.php 1862 2009-03-06 23:34:07Z hpdl $ |
| |
| 3 | + | $Id: database.php 1863 2009-03-06 23:53:49Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2007 osCommerce |
| |
| 8 | + | Copyright (c) 2009 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | This program is free software; you can redistribute it and/or modify |
| |
11 | 11 | | it under the terms of the GNU General Public License v2 (1991) |
| |
|
|
 |
… |
|
62 | 62 | | } |
| |
63 | 63 | | |
| |
64 | 64 | | function setError($error, $error_number = '', $query = '') { |
  |
65 | | - | global $messageStack; |
| |
| 65 | + | global $osC_MessageStack; |
|
66 | 66 | | |
| |
67 | 67 | | if ($this->error_reporting === true) { |
| |
68 | 68 | | $this->error = $error; |
| |
69 | 69 | | $this->error_number = $error_number; |
| |
70 | 70 | | $this->error_query = $query; |
| |
71 | 71 | | |
  |
72 | | - | if (isset($messageStack)) { |
| |
73 | | - | $messageStack->add('debug', $this->getError()); |
| |
| 72 | + | if (isset($osC_MessageStack)) { |
| |
| 73 | + | $osC_MessageStack->add('debug', $this->getError()); |
|
74 | 74 | | } |
| |
75 | 75 | | } |
| |
76 | 76 | | } |
| |
|
|
 |
… |
|
551 | 551 | | $this->setNextID($this->logging_module_id); |
| |
552 | 552 | | } |
| |
553 | 553 | | |
  |
554 | | - | if ( class_exists('osC_AdministratorsLog') ) { |
| |
555 | | - | osC_AdministratorsLog::insert($this->logging_module, $this->db_class->logging_transaction_action, $this->logging_module_id, $this->logging_action, $this->logging_changed, $this->db_class->logging_transaction); |
| |
| 554 | + | if ( class_exists('osC_AdministratorsLog_Admin') ) { |
| |
| 555 | + | osC_AdministratorsLog_Admin::insert($this->logging_module, $this->db_class->logging_transaction_action, $this->logging_module_id, $this->logging_action, $this->logging_changed, $this->db_class->logging_transaction); |
  |
556 | 556 | | } |
| |
557 | 557 | | } |
| |
558 | 558 | | } |