Changeset 454 for trunk/plugins
- Timestamp:
- 04/22/07 14:13:48 (19 months ago)
- Location:
- trunk/plugins
- Files:
-
- 2 modified
-
acronyms.php (modified) (2 diffs)
-
altarchive.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/acronyms.php
r312 r454 25 25 die($res->getMessage()); 26 26 } 27 while ($r es->fetchInto($row, DB_FETCHMODE_ASSOC)) {27 while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) { 28 28 $this->_acronyms[$row["id"]] = array($row["acronym"], $row["description"]); 29 29 } … … 128 128 $sql = sprintf("SELECT id FROM acronyms WHERE acronym='%s' AND description='%s'", $acro["acronym"], $acro["description"]); 129 129 $res = $this->_mvblog->db->query($sql); 130 $r es->fetchInto($row);130 $row = $res->fetchRow(); 131 131 $this->_acronyms[$row[0]] = array($acro["acronym"], $acronym["description"]); 132 132 } -
trunk/plugins/altarchive.php
r404 r454 32 32 $sql = "SELECT date FROM articles WHERE active=1 AND public=1 ORDER BY date DESC"; 33 33 $res = $this->_mvblog->db->query($sql); 34 while ($r es->fetchInto($row)) {34 while ($row = $res->fetchRow()) { 35 35 $month = date("m", $row[0]); 36 36 $year = date("Y", $row[0]); … … 45 45 $sql = "SELECT * FROM settings WHERE settingname LIKE 'altarchive_%'"; 46 46 $res = $this->_mvblog->db->query($sql); 47 while ($r es->fetchInto($row, DB_FETCHMODE_ASSOC)) {47 while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) { 48 48 $this->_settings[$row["settingname"]] = $row["settingvalue"]; 49 49 } … … 148 148 $sql = "SELECT COUNT(*) FROM settings WHERE settingname = 'altarchive_showdefaultcss'"; 149 149 $res = $this->_mvblog->db->query($sql); 150 $r es->fetchInto($row);150 $row = $res->fetchRow(); 151 151 if ($row[0]) { 152 152 /* yes, so update */
