Commit fe973433 authored by Thomas Löffler's avatar Thomas Löffler

Merge branch '127-link-to-extension-documentation-not-shown-on-ter' into 'develop'

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

Closes #127

See merge request !157
parents 1ce4a5dd 3e56bb6b
Pipeline #2037 passed with stages
in 1 minute and 32 seconds
...@@ -89,9 +89,8 @@ class Documentation implements \TYPO3\CMS\Core\SingletonInterface ...@@ -89,9 +89,8 @@ class Documentation implements \TYPO3\CMS\Core\SingletonInterface
// link to extension to get the latest manual // link to extension to get the latest manual
$url = $this->baseUrl . $extensionKey . '/'; $url = $this->baseUrl . $extensionKey . '/';
// check if link is not broken // check if link is not broken
if (strpos(\TYPO3\CMS\Core\Utility\GeneralUtility::getURL($url, 2), 'HTTP/1.1 200 OK') !== FALSE) { // need to remove the 200 response check due to change in header for docs.typo3.org
$documentationLink = '<a href="' . $url . '">Extension Manual</a>'; $documentationLink = '<a href="' . $url . '">Extension Manual</a>';
}
} }
return $returnUrlOnly ? $url : $documentationLink; return $returnUrlOnly ? $url : $documentationLink;
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<f:if condition="{extension.externalManual}"> <f:if condition="{extension.externalManual}">
<f:then> <f:then>
<f:link.external rel="nofollow" uri="{extension.externalManual}" target="_blank"> <f:link.external rel="nofollow" uri="{extension.externalManual}" target="_blank">
<f:translate key="extension_manual" /> <f:translate key="external_manual" />
</f:link.external> </f:link.external>
</f:then> </f:then>
<f:else> <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