Move forceHTTPS check until after wgTitle is setup
authorcsteipp <csteipp@wikimedia.org>
Mon, 7 Oct 2013 19:47:43 +0000 (12:47 -0700)
committercsteipp <csteipp@wikimedia.org>
Mon, 7 Oct 2013 19:47:43 +0000 (12:47 -0700)
commit0adbbacb0ad94ca14c8bf96df2fdcd0f153e8f6e
treebc33dff105bb2792a88be17d06a17a100402bf9a
parent493431b6e73966d196c9ed09b49947b4776eda4b
Move forceHTTPS check until after wgTitle is setup

Since the forceHTTPS logic checks if the user is logged in, which calls
all sorts of hooks, some that assume that $wgTitle is setup (like
AbuseFilter for preventing autocreation of usernames), move the
logic down a few lines.

Bug: 55435
Bug: 53498
Change-Id: I53c82921595a9014b555e4ec468e5ba10454cd3a
includes/Wiki.php