[TYPO3-dev] Trying to make plugins compatible with Typo3 4.2
Franz Holzinger
franz at fholzinger.com
Fri Feb 29 19:30:16 CET 2008
Tapio Markula a écrit :
>
> 1) strcmp(trim($def['content'],'')); in XCLASS for template cause
>
> Warning: Wrong parameter count for strcmp() in
> .../typo3conf/ext/tm_shared_lib/class.ux_template.php on line 747
strcmp(trim($def['content']),'');
> 2) private methods *Fatal error*: Call to private method
> SC_mod_user_setup_index::getButtons() from context
> 'ux_SC_mod_user_setup_index' in
> *.../typo3conf/ext/tm_shared_lib/class.ux_SC_mod_user_setup_index.php*
> on line *690*
Maybe this function is intended not to be used from outside.
If there wouldn't be those lines at the end, you could inherit from this
class, but still protected would be needed.
> // Make instance:
> $SOBE = t3lib_div::makeInstance('SC_mod_user_setup_index');
> $SOBE->simulateUser();
> $SOBE->storeIncomingData();
>
> // These includes MUST be afterwards the settings are saved...!
> require ($BACK_PATH.'template.php');
> $LANG->includeLLFile('EXT:setup/mod/locallang.xml');
>
> $SOBE->init();
> $SOBE->main();
> $SOBE->printContent();
- Franz
More information about the TYPO3-dev
mailing list