Changeset 3850
- Timestamp:
- 06/15/09 02:12:03 (9 months ago)
- Location:
- branches/feature-php5-migration/php/lib
- Files:
-
- 1 added
- 2 modified
-
class.mt_entry.php (modified) (1 diff)
-
mtdb.base.php (modified) (5 diffs)
-
mtdb.mysql.php (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-php5-migration/php/lib/class.mt_entry.php
r3686 r3850 43 43 $where = "placement_entry_id = " . $this->id; 44 44 if ($primary) { 45 $where .= " and placement_is_primary = 1";45 $where .= " and placement_is_primary = 1"; 46 46 } 47 47 -
branches/feature-php5-migration/php/lib/mtdb.base.php
r3840 r3850 132 132 } 133 133 134 p rotectedfunction apply_extract_date($part, $column) {134 public function apply_extract_date($part, $column) { 135 135 return "extract($part from $column)"; 136 136 } … … 352 352 and fileinfo_blog_id = $blog_id 353 353 and fileinfo_archive_type = '" . $this->escape($at). "'" . 354 " and templatemap_is_preferred = 1";354 " and templatemap_is_preferred = 1"; 355 355 } 356 356 $extras['join'] = array( … … 436 436 $filter"; 437 437 if (isset($args['blog_id'])) 438 $where .= " and fileinfo_blog_id = " . $args['blog_id'];438 $where .= " and fileinfo_blog_id = " . $args['blog_id']; 439 439 require_once('class.mt_fileinfo.php'); 440 440 $finfo = new FileInfo; … … 1508 1508 $cat_filter .= ' and placement_category_id = category_id'; 1509 1509 if (isset($args['entry_id'])) { 1510 $entry_filter = ' and placement_entry_id = entry_id and placement_entry_id = '.intval($args['entry_id']);1510 $entry_filter = ' and placement_entry_id = entry_id and placement_entry_id = '.intval($args['entry_id']); 1511 1511 } else { 1512 $entry_filter = ' and placement_entry_id = entry_id and entry_status = 2';1512 $entry_filter = ' and placement_entry_id = entry_id and entry_status = 2'; 1513 1513 } 1514 1514 } … … 1519 1519 $class = "category"; 1520 1520 } 1521 $class_filter = " and category_class='$class'";1521 $class_filter = " and category_class='$class'"; 1522 1522 1523 1523 $sql = "
