/[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.9, Wed Mar 11 05:42:47 2009 UTC revision 1.10, Sat May 2 19:44:33 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: imageapi_gd.install,v 1.8 2008/08/01 18:52:22 dopry Exp $  // $Id: imageapi_gd.install,v 1.9 2009/03/11 05:42:47 drewish 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.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.2