Announcement

#1 2013-06-24 02:00:43

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

[resolved] Prefilters not working ?

Hi rvelices

since [Subversion] r23476 my prefilters don't work anymore

like this one (very simple)

Code:

function pla_begin_admin()
{
  global $template;
  $template->set_prefilter('admin', 'pla_add_menu_item');
}

function pla_add_menu_item($content, &$smarty)
{
  $search = 'href="{$U_UPDATES}">{\'Updates\'|@translate}</a></li>';
  $add = '<li><a class="icon-language" href="'.PLA_ADMIN.'">Plugin Language Analysis</a></li>';
  return str_replace($search, $search."\n".$add, $content);
}

I think it's relative to changes lines 772/800 and 788/816 of template.class.php

Offline

 

#2 2013-06-24 06:24:43

rvelices
Former Piwigo Team
2005-12-29
1960

Re: [resolved] Prefilters not working ?

thanks. should be ok now [Subversion] r23495

Offline

 

#3 2013-06-24 12:21:51

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] Prefilters not working ?

perfect !

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact