Skip to content

Commit

Permalink
compatibility Piwigo 12
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Nov 25, 2021
1 parent d4e9818 commit 9d3c34a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.inc.php
Expand Up @@ -21,9 +21,9 @@
add_event_handler('loc_begin_admin_page', 'wm_add_link', 60);
function wm_add_link()
{
global $template, $page;
global $template, $page;

$template->set_prefilter('picture_modify', 'wm_add_link_prefilter');
$template->set_prefilter('picture_modify', 'wm_add_link_prefilter');

if (isset($page['page']) and 'photo' == $page['page'])
{
Expand All @@ -34,7 +34,7 @@ function wm_add_link()
}
}

function wm_add_link_prefilter($content, &$smarty)
function wm_add_link_prefilter($content)
{
$search = '{if !url_is_remote($PATH)}';

Expand Down

0 comments on commit 9d3c34a

Please sign in to comment.