Changeset 27332


Ignore:
Timestamp:
Feb 11, 2014, 9:50:41 PM (7 years ago)
Author:
rvelices
Message:

modus partially fix compatibility with pwg_stuffs (tricky smarty issue). as a side note there are still potential issues as pwg_stuffs includes thumbnails.tpl several times ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/modus/themeconf.inc.php

    r27151 r27332  
    22/*
    33Theme Name: modus
    4 Version: 2.6.a
     4Version: 2.6.b
    55Description: Responsive, horizontal menu, retina aware, no lost space.
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=728
     
    174174
    175175$this->smarty->registerPlugin('function', 'modus_thumbs', 'modus_thumbs');
    176 function modus_thumbs()
     176function modus_thumbs($x, $smarty)
    177177{
    178178        global $template, $page, $conf;
     
    180180';
    181181
    182         $default_params = $template->get_template_vars('derivative_params');
     182        $default_params = $smarty->getTemplateVars('derivative_params');
    183183        $row_height = $default_params->max_height();
    184184        $device = get_device();
     
    211211        $new_icon = " <span class=albSymbol title=\"".l10n('posted on %s')."\">".MODUS_STR_RECENT.'</span>';
    212212
    213         foreach($template->get_template_vars('thumbnails') as $item)
     213        foreach($smarty->getTemplateVars('thumbnails') as $item)
    214214        {
    215215                $src_image = $item['src_image'];
Note: See TracChangeset for help on using the changeset viewer.