Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12512990
D3834.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3834.id.diff
View Options
diff --git a/workspaces/src/apps/mediawikimirror/MediaWikiMirrorApplication.php b/workspaces/src/apps/mediawikimirror/MediaWikiMirrorApplication.php
--- a/workspaces/src/apps/mediawikimirror/MediaWikiMirrorApplication.php
+++ b/workspaces/src/apps/mediawikimirror/MediaWikiMirrorApplication.php
@@ -35,19 +35,6 @@
"/index.php?action=render&title=". $page;
}
- /**
- * Fixes links in the content
- *
- * @param string $content The page content
- * @return string The page content, with updated links
- */
- public function fixLinks ($content) {
- $fullUrl = $this->context->configuration->url[0] . $this->context->configuration->url[1];
- $content = str_replace('<a href="' . $this->context->configuration->url[1], '<a href="' . $fullUrl, $content);
- $content = str_replace(' src="' . $this->context->configuration->url[1], ' src="' . $fullUrl, $content);
- return $content;
- }
-
/**
* Handles controller request
*/
@@ -63,7 +50,6 @@
$url = $this->getRenderUrl();
try {
$content = file_get_contents($url);
- $content = $this->fixLinks($content);
$smarty->assign("Content", $content);
$smarty->display("apps/mediawikimirror/page.tpl");
} catch (Exception $ex) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 10, 03:42 (9 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3153268
Default Alt Text
D3834.id.diff (1 KB)
Attached To
Mode
D3834: Don't fix MediaWiki links anymore
Attached
Detach File
Event Timeline
Log In to Comment