Page MenuHomePhabricator

cats_on_redirs.pat

Authored By
bzimport
Nov 21 2014, 8:11 PM
Size
934 B
Referenced Files
None
Subscribers
None

cats_on_redirs.pat

--- Article.1.248.2.20.php Wed Mar 16 19:13:08 2005
+++ Article.php Wed Apr 13 21:53:54 2005
@@ -1011,7 +1011,7 @@
# wants to see
if ( preg_match( "/^((" . $wgMwRedir->getBaseRegex() . ')[^\\n]+)/i', $text, $m ) ) {
$redir = 1;
- $text = $m[1] . "\n";
+ // $text = $m[1] . "\n"; Allow for categories on redirect pages
}
}
else { $redir = 0; }
--- CategoryPage.1.10.2.5.php Thu Feb 03 03:39:50 2005
+++ CategoryPage.php Wed Apr 13 21:59:10 2005
@@ -90,8 +90,8 @@
array( 'cur_title', 'cur_namespace', 'cl_sortkey' ),
array( $pageCondition,
'cl_from = cur_id',
- 'cl_to' => $this->mTitle->getDBKey(),
- 'cur_is_redirect' => 0),
+ 'cl_to' => $this->mTitle->getDBKey() ),
+ # 'cur_is_redirect' => 0),
#+ $pageCondition,
$fname,
array( 'ORDER BY' => $flip ? 'cl_sortkey DESC' : 'cl_sortkey',

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1403
Default Alt Text
cats_on_redirs.pat (934 B)

Event Timeline