[Solved]: plugin filter question [Solved]: plugin filter question
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: plugin filter question

Started by Timos-Welt, April 08, 2008, 09:24:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Timos-Welt

I'm trying to use the $pic_row filter in a plugin.

What I did: Add a filter.

$thisplugin->add_filter('thumb_data','do_title');

The corresponding function (shouldn't do anything ATM but return $pic_row in its original state):


function do_title()
{
global $pic_row;
return $pic_row;
}


As far as I understand, the result should be no change. But in fact, the thumbs are gone. Why?

regards
Timo

Nibbler

Should be


function do_title($pic_row)
{
return $pic_row;
}


What you are filtering is the parameter.

Timos-Welt