[Mediawiki-l] How to avoid intermediate page
Platonides
Platonides at gmail.com
Fri Apr 20 09:56:32 UTC 2007
Alexis Moinet wrote:
> if ( $auto ) {
> $wgOut->redirect( $titleObj->escapeFullURL() );
> $wgOut->addMeta( 'http:Refresh', '10;url=' . $titleObj->escapeFullURL() );
> }
>
> you can also simply reduce the waiting time (10 sec) by changing the value in $wgOut->addMeta( 'http:Refresh', '10;url=' . $titleObj->escapeFullURL() );
Changing the 10 sec to 0 sec will work like a redirect (in fact, it's a
html redirect).
More information about the MediaWiki-l
mailing list