/[drupal]/contributions/modules/imageapi/imageapi_gd.install
ViewVC logotype

Diff of /contributions/modules/imageapi/imageapi_gd.install

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

revision 1.8, Fri Aug 1 18:52:22 2008 UTC revision 1.8.2.1, Sat May 2 19:45:10 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: imageapi_gd.install,v 1.7 2008/05/29 03:30:59 drewish Exp $  // $Id: imageapi_gd.install,v 1.8 2008/08/01 18:52:22 dopry Exp $
3    
4  function imageapi_gd_requirements($phase) {  function imageapi_gd_requirements($phase) {
5    $requirements = array();    $requirements = array();
# Line 57  function imageapi_gd_requirements($phase Line 57  function imageapi_gd_requirements($phase
57        );        );
58      }      }
59    
60        // Test the 'memory_limit' PHP configuration directive
61      $memory_limit = ini_get('memory_limit');      $memory_limit = ini_get('memory_limit');
62    
63      if (parse_size($memory_limit) < parse_size('96M')) {      // If $memory_limit contains a value of -1, the PHP runtime
64        // doesn't impose a limit on memory used by PHP scripts
65        if ($memory_limit && $memory_limit != -1 && parse_size($memory_limit) < parse_size('96M')) {
66        $requirements['imagecache_memory_limit'] = array(        $requirements['imagecache_memory_limit'] = array(
67          'title' => $t('ImageAPI GD Memory Limit'),          'title' => $t('ImageAPI GD Memory Limit'),
68          'value' => $memory_limit,          'value' => $memory_limit,

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.8.2.1

  ViewVC Help
Powered by ViewVC 1.1.2