1
luca200
Hacking wf-section
  • 2004/8/7 13:39

  • luca200

  • Just popping in

  • Posts: 6

  • Since: 2004/8/7 1


I added a block to wf-section module, making it visible in all pages of my site.
There is a trouble when I try to open some other modules (mydownloads and mylinks) because everyone of them uses a function name that is also used in wfsection, so I get a fatal error for duplicate function name.
Asking myself why other blocks didn't get this error, I discovered that all the wfsection blocks DO NOT include the functions file, neither any class file. My block uses the wfsection class file, that includes the functions file.
Is there any sort of XOOPS standard stating I can't use a function file in a block file? How can I avoid this function naming conflict?

2
phppp
Re: Hacking wf-section
  • 2004/8/7 15:20

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


you can change the function name by adding prefix like mymodule_....

remember to change whereever calls the class/function


It is fixed for the next release if you could wait

3
luca200
Re: Hacking wf-section
  • 2004/8/7 15:33

  • luca200

  • Just popping in

  • Posts: 6

  • Since: 2004/8/7 1


Quote:

It is fixed for the next release if you could wait

It all depends on how long...

Login

Who's Online

218 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits