Topic: Error in "unpublish_content.processor.php"  (Read 1654 times)

Pages: [1]   Go Down

#1: 12-Jan-2008, 05:57 AM

labr1005
Posts: 4

Hi there.
Is it possible, that there is an error in the file "manager > processors > unpublish_content.processor.php"?
I think, that the invokeEvent is written wrong.

Instead of
Code:
$modx->invokeEvent("OnDocUnpublished",array("docid"=>$id));
it should be
Code:
$modx->invokeEvent("OnDocUnPublished",array("docid"=>$id));
with a capitelized "P".

At least that's how it is written in the database "sytem_eventnames" and I can't call any function in a plugin when using
Code:
case 'OnDocUnpublished':
or
Code:
case 'OnDocUnPublished':

Sorry for my bad English. I hope you get what I'm up to...

#2: 12-Jan-2008, 06:36 AM

Coding Team

sottwell
Posts: 12,261

WWW
It definitely has to be one or the other, so either the database is wrong or the event name in the processor file is.
How MODx Works
Log in to an Evo Manager username guest, password guestuser.

#3: 12-Jan-2008, 08:51 AM

labr1005
Posts: 4

Thank you.
So can I fix that in the processor file without running into any trouble? Is there any other known plugin using this event or even modX by itself?
Best regards
Lars

#4: 12-Jan-2008, 08:53 AM

Coding Team

sottwell
Posts: 12,261

WWW
Any plugins would have run into your same problem, so I doubt if you'll break anything.
How MODx Works
Log in to an Evo Manager username guest, password guestuser.
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.