Page MenuHomePhabricator

Skin.php.patch

Authored By
bzimport
Nov 21 2014, 9:10 PM
Size
817 B
Referenced Files
None
Subscribers
None

Skin.php.patch

Index: Skin.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/Skin.php,v
retrieving revision 1.420
diff -u -r1.420 Skin.php
--- Skin.php 16 Mar 2006 02:47:49 -0000 1.420
+++ Skin.php 28 Mar 2006 13:24:32 -0000
@@ -578,9 +578,10 @@
/** @return string Retrievied from HTML text */
function printSource() {
- global $wgTitle;
- $url = htmlspecialchars( $wgTitle->getFullURL() );
- return wfMsg( 'retrievedfrom', '<a href="'.$url.'">'.$url.'</a>' );
+ global $wgServer, $wgArticlePath, $wgTitle;
+ $path = $wgServer.str_replace("$1", $wgTitle->mPrefixedText, $wgArticlePath);
+ $url = htmlspecialchars($wgTitle->getFullURL());
+ return wfMsg( 'retrievedfrom', '<a href="'.$url.'" dir="ltr">'.$path.'</a>' );
}
function printFooter() {

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2272
Default Alt Text
Skin.php.patch (817 B)

Event Timeline