/**
* [Describe function...]
*
- * @param [type] $ln: ...
+ * @param integer $lineNumber Line Number
* @param [type] $str: ...
- * @return [type] ...
+ * @return string
*/
- function ext_lnBreakPointWrap($ln, $str) {
- return '<a href="#" onClick="return brPoint(' . $ln . ',' . ($this->ext_lineNumberOffset_mode == "setup" ? 1 : 0) . ');">' . $str . '</a>';
+ function ext_lnBreakPointWrap($lineNumber, $str) {
+ return '<a href="#" id="line-' . $lineNumber . '" onClick="return brPoint(' . $lineNumber . ',' . ($this->ext_lineNumberOffset_mode == "setup" ? 1 : 0) . ');">' . $str . '</a>';
}
/**
$pEkey = ($bType=="setup"?"config":"constants");
if (count($tmpl->parserErrors[$pEkey])) {
$errMsg=array();
+ $templateAnalyzerInstalled = t3lib_extMgm::isLoaded('tstemplate_analyzer');
+
foreach ($tmpl->parserErrors[$pEkey] as $inf) {
- $errMsg[]=($inf[1]).": ".$inf[0];
+ $errorLink = '';
+ if ($templateAnalyzerInstalled) {
+ $errorLink = ' <a href="index.php?id=' . $this->pObj->id . '&SET[function]=tx_tstemplateanalyzer&template=all&SET[ts_analyzer_checkLinenum]=1#line-' . $inf[2] . '">'
+ . $GLOBALS['LANG']->getLL('errorShowDetails')
+ . '</a>';
+ }
+
+ $errMsg[] = ($inf[1]) . ": " . $inf[0] . $errorLink;
}
$theOutput .= $this->pObj->doc->spacer(10);
<trans-unit id="errorsWarnings" xml:space="preserve">
<source>Errors and warnings</source>
</trans-unit>
+ <trans-unit id="errorShowDetails" xml:space="preserve">
+ <source>Show details</source>
+ </trans-unit>
<trans-unit id="removeKey" xml:space="preserve">
<source>Remove key from OL</source>
</trans-unit>