#17381"patch" for Hook-TutorialArticle - page 3
Description
There’s a little typo in the Hook-Tutorial, because of that some extensions have that error. But in PHP 5.2.3 this leads to big problems with some extensions.
http://typo3.org/development/articles/how-to-use-existing-hooks/page/3/
Instead of this
++——————
Finally we create an empty function in our new classed, with exactly the same name mentioned in the hook. Our class should now look like this:
class tx_myextension_tcemainprocdm {
function processDatamap_postProcessFieldArray ($status, $table, $id, &$fieldArray, &$this) {
// here comes the code
}
}
++——————
it should be that
++——————
Finally we create an empty function in our new classed, with exactly the same name mentioned in the hook. Our class should now look like this:
class tx_myextension_tcemainprocdm {
function processDatamap_postProcessFieldArray ($status, $table, $id, &$fieldArray, &$reference) {
// here comes the code
}
}
++——————
The error-message just occurs since using 5.2.3
for example in the EXT cal 0.15.1
++——————
$this in /home/www/danielbruessler.de/public_html/typo3conf/ext/cal/hooks/class.tx_cal_tcemain_processdatamap.php on line 36
++——————
I check more extensions what have that error and report the bugs as patches.
(issue imported from #M5787)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.