ialex@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)
On Tue, Apr 15, 2008 at 2:27 PM, Roan Kattouw roan.kattouw@home.nl wrote:
Wouldn't it be cleaner and more efficient to add a field to the redirect table that stores the fragment?
Only if some use could be thought of for it other than actually executing the redirect (which can easily use the page text).
wikitech-l@lists.wikimedia.org