Changeset 13864


Ignore:
Timestamp:
04/02/12 22:17:33 (8 years ago)
Author:
rvelices
Message:

feature 2604 multisize rotation - fix creation of derivatives for representatives of non image elements + avoid unnecessary sql update query

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/i.php

    r13848 r13864  
    439439} 
    440440 
     441include_once(PHPWG_ROOT_PATH . 'admin/include/image.class.php'); 
    441442$page['coi'] = null; 
    442443if (strpos($page['src_location'], '/pwg_representative/')===false 
     
    447448  { 
    448449    $query = ' 
    449 SELECT 
    450     id, 
    451     coi, 
    452     width, 
    453     height, 
    454     rotation 
     450SELECT * 
    455451  FROM '.$prefixeTable.'images 
    456452  WHERE path=\''.$page['src_location'].'\' 
     
    465461      $page['coi'] = $row['coi']; 
    466462 
    467       include_once(PHPWG_ROOT_PATH . 'admin/include/image.class.php'); 
    468  
    469       if (empty($row['rotation'])) 
     463      if (!isset($row['rotation'])) 
    470464      { 
    471465        $page['rotation_angle'] = pwg_image::get_rotation_angle($page['src_path']); 
Note: See TracChangeset for help on using the changeset viewer.