[moodle] / moodle / lib / googleapi.php Repository:

Diff of /moodle/lib/googleapi.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2, Mon Dec 1 02:37:06 2008 WST revision 1.3, Mon Jan 19 14:59:47 2009 WST

By moodler:

repository/picasa MDL-17473 Hardcode image heights and widths for nicer display

# Line 401  Line 401 
401                  'size'  => (int) $gphoto->bytesUsed,                  'size'  => (int) $gphoto->bytesUsed,
402                  'path'  => (string) $gphoto->id,                  'path'  => (string) $gphoto->id,
403                  'thumbnail' => (string) $thumbnailinfo['url'],                  'thumbnail' => (string) $thumbnailinfo['url'],
404                  'thumbnail_width' => (int) $thumbnailinfo['width'],                  'thumbnail_width' => 160,  // 160 is the native maximum dimension
405                  'thumbnail_height' => (int) $thumbnailinfo['height'],                  'thumbnail_height' => 160,
406                  'children' => array(),                  'children' => array(),
407              );              );
408    
# Line 437  Line 437 
437                  'size' => (int) $gphoto->size,                  'size' => (int) $gphoto->size,
438                  'path' => $gphoto->albumid.'/'.$gphoto->id,                  'path' => $gphoto->albumid.'/'.$gphoto->id,
439                  'thumbnail' => (string) $thumbnailinfo['url'],                  'thumbnail' => (string) $thumbnailinfo['url'],
440                  'thumbnail_width' => (int) $thumbnailinfo['width'],                  'thumbnail_width' => 72,  // 72 is the native maximum dimension
441                  'thumbnail_height' => (int) $thumbnailinfo['height'],                  'thumbnail_height' => 72,
442                  'source' => (string) $fullinfo['url'],                  'source' => (string) $fullinfo['url'],
443              );              );
444          }          }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7