ialex(a)svn.wikimedia.org schreef:
Revision: 33375
Author: ialex
Date: 2008-04-15 17:32:23 +0000 (Tue, 15 Apr 2008)
Log Message:
-----------
(bug 13752) Section redirects now works again
<snip>
+ function followRedirect( $getFragment = false ) {
+ if( $getFragment )
+ // We'll need to use the content of this page, as Article::getRedirectTarget()
+ // now loads the data from redirect table, wich doesn't store the fragment
+ $rt = Title::newFromRedirect( $this->getContent() );
+ else
+ $rt = $this->getRedirectTarget();
Wouldn't it be cleaner and more efficient to add a field to the redirect
table that stores the fragment? Also, is followRedirect(false); (or
followRedirect(); for that matter) ever really used?
Roan Kattouw (Catrope)