SchmitzIT
Well-known member
Hi,
I'm attempting to write an add-on that changes a single line in one of the standard XenForo files (ControllerPublic/Forum.php).
The functionality I intend to change can be altered by changing a single line. I figured the easiest would be for me to build an add-on that extends ControllerPublic_Forum. Would I need to duplicate the entire function and change the line I need to change in order to achieve what I'd need, or is there a more elegant solution that doesn't involve copying a lot of code that just repeats what was already there?
Thanks!
/Peter
I'm attempting to write an add-on that changes a single line in one of the standard XenForo files (ControllerPublic/Forum.php).
The functionality I intend to change can be altered by changing a single line. I figured the easiest would be for me to build an add-on that extends ControllerPublic_Forum. Would I need to duplicate the entire function and change the line I need to change in order to achieve what I'd need, or is there a more elegant solution that doesn't involve copying a lot of code that just repeats what was already there?
Thanks!
/Peter