dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14d5617
)
Revert Domas's last checkin, it broke tabs on redirects. Please test before checkin!
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 14 Jan 2006 04:35:43 +0000
(
04:35
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 14 Jan 2006 04:35:43 +0000
(
04:35
+0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
82891fc
..
6a1c0e3
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-91,8
+91,11
@@
class Article {
} else {
return $rt->getFullURL();
}
- }
- return $rt;
+ } elseif( $rt->exists() ) {
+ // Internal redirects can be handled relatively gracefully.
+ // We may have to change to another Article subclass, though.
+ return $rt;
+ }
}
}
@@
-424,7
+427,6
@@
class Article {
* @access private
*/
function loadPageData( $data ) {
- $this->mTitle->mArticleID = $data->page_id;
$this->mTitle->loadRestrictions( $data->page_restrictions );
$this->mTitle->mRestrictionsLoaded = true;