[TASK] Adjust example from mediumDoc to DocumentTemplate 53/19953/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 14 Apr 2013 00:07:38 +0000 (02:07 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 14 Apr 2013 09:56:59 +0000 (11:56 +0200)
Since 6.1 mediumDoc etc. are deprecated and DocumentTemplate
should be used. Adjust example-code to this change.

Resolves: #47204
Releases: 6.1
Change-Id: I20d7d1c18da738717db7e2dfb1844e80d99343da
Reviewed-on: https://review.typo3.org/19953
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Module/BaseScriptClass.php

index 4d366ea..c963aea 100644 (file)
@@ -50,7 +50,7 @@ namespace TYPO3\CMS\Backend\Module;
  * MAIN FUNCTION - HERE YOU CREATE THE MODULE CONTENT IN $this->content
  * function main() {
  * TYPICALLY THE INTERNAL VAR, $this->doc is instantiated like this:
- * $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('mediumDoc');
+ * $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
  * TYPICALLY THE INTERNAL VAR, $this->backPath is set like this:
  * $this->backPath = $this->doc->backPath = $GLOBALS['BACK_PATH'];
  * ... AND OF COURSE A LOT OF OTHER THINGS GOES ON - LIKE PUTTING CONTENT INTO $this->content