Platonides wrote:
Instead of writing to the special page:
global $wgUser;
if ( $wgUser->isLoggedIn() )
header("Location: /wiki/Real_Main_Page"); //Issues a 302 Redirect
else
header("Location: /wiki/Special:UserLogin");
exit(0);
#TODO: Send the redirect using the Mediawiki function.
Thanks Platonides, where would I place this code? I tried in the
LocalSettings.php and it does not seem to work.
....................................................................................
This message (including any attachments) contains confidential and proprietary
information intended only for the addressee. If you are not the intended recipient,
please notify the sender immediately by responding to this e-mail, and delete
this message and attachments from your system. If you have any questions
about this e-mail please notify the sender immediately. Any unauthorized
disclosure, copying, distribution or reliance on the contents of this information
is strictly prohibited and may constitute a violation of law.