Commit 3e56bb6b authored by Thomas Löffler's avatar Thomas Löffler

Removes check for 200 response of docs.typo3.org webserver

* Also changes wrong label
parent 1ce4a5dd
Pipeline #2027 passed with stages
in 1 minute and 20 seconds
......@@ -89,9 +89,8 @@ class Documentation implements \TYPO3\CMS\Core\SingletonInterface
// link to extension to get the latest manual
$url = $this->baseUrl . $extensionKey . '/';
// check if link is not broken
if (strpos(\TYPO3\CMS\Core\Utility\GeneralUtility::getURL($url, 2), 'HTTP/1.1 200 OK') !== FALSE) {
$documentationLink = '<a href="' . $url . '">Extension Manual</a>';
}
// need to remove the 200 response check due to change in header for docs.typo3.org
$documentationLink = '<a href="' . $url . '">Extension Manual</a>';
}
return $returnUrlOnly ? $url : $documentationLink;
......
......@@ -44,7 +44,7 @@
<f:if condition="{extension.externalManual}">
<f:then>
<f:link.external rel="nofollow" uri="{extension.externalManual}" target="_blank">
<f:translate key="extension_manual" />
<f:translate key="external_manual" />
</f:link.external>
</f:then>
<f:else>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment