Closed (fixed)
Project:
German Stemmer
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Jan 2011 at 11:58 UTC
Updated:
16 Jun 2011 at 08:30 UTC
I'm currently bugfixing a Drupal 5 site. There, author_pane and de_stemmer are installed. As author_pane backported the Drupal6 preprocess functionality, that is searching for hook_preprocess(). As de_stemmer uses de_stemmer_preprocess(), this causes author_pane calling this function. But by this, it "destroys" the given preprocess-$variables.
The attached patch solved this problem, bysimply renaming de_stemmer_preprocess() to _de_stemmer_preprocess().
| Comment | File | Size | Author |
|---|---|---|---|
| de_stemmer.patch | 894 bytes | derhasi |
Comments
Comment #1
schildi commentedI'm a bit surprised. Looking for "hook_preprocess" I found that this hook is available for D7 only. How can it be part of a back port from D6 to D5 ?
On the other side, all functions used internally only should be prefixed by an underscore character. I will check this when upgrading the stemmer to D7 next time.
Comment #2
michelletemplate_preprocess is what was backported. Basically, I backported D6 style theming to keep maintaining two branches at once sane. Bit of deja vu here... I'm pretty sure I had to work around this problem with the porter_stemmer module. Ended up putting an exception in or something... Not real sure. It's been a long time since I've looked at 5.x.
Michelle
Comment #3
schildi commented