Changeset 16318


Ignore:
Timestamp:
Jul 3, 2012, 1:16:28 PM (8 years ago)
Author:
patdenice
Message:

Deactivate GThumb with mobile theme.
Remove thumbnail size icon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GThumb/main.inc.php

    r13652 r16318  
    1313if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1414
     15if (mobile_theme()) return;
     16
    1517define('GTHUMB_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
    1618
     
    2527
    2628add_event_handler('loc_begin_index', 'GThumb_init', 60);
     29add_event_handler('loc_end_index', 'GThumb_remove_thumb_size');
    2730add_event_handler('get_admin_plugin_menu_links', 'GThumb_admin_menu');
    2831
     
    7679}
    7780
     81function GThumb_remove_thumb_size()
     82{
     83  global $template;
     84  $template->clear_assign('image_derivatives');
     85}
     86
    7887?>
Note: See TracChangeset for help on using the changeset viewer.