Changeset 130 for branches/2.0singleton/lib/PageNumbers.inc.php
- Timestamp:
- May 30, 2006 9:30:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0singleton/lib/PageNumbers.inc.php
r128 r130 192 192 { 193 193 $app =& App::getInstance(); 194 $db =& DB::getInstance(); 194 195 195 196 if (is_numeric($this->first_item) && is_numeric($this->_per_page)) { 196 return ' LIMIT ' . DB::escapeString($this->first_item) . ', ' . DB::escapeString($this->_per_page) . ' ';197 return ' LIMIT ' . $db->escapeString($this->first_item) . ', ' . $db->escapeString($this->_per_page) . ' '; 197 198 } else { 198 199 $app->logMsg(sprintf('Could not find SQL to LIMIT by %s %s.', $this->first_item, $this->_per_page), LOG_WARNING, __FILE__, __LINE__);
Note: See TracChangeset
for help on using the changeset viewer.