Index: trunk/extensions/CentralAuth/CentralAuthUser.php |
— | — | @@ -1805,6 +1805,16 @@ |
1806 | 1806 | |
1807 | 1807 | self::deleteSession(); |
1808 | 1808 | } |
| 1809 | + |
| 1810 | + /** |
| 1811 | + * Get the domain parameter for setting a global cookie. |
| 1812 | + * This allows other extensions to easily set global cookies without directly relying on |
| 1813 | + * $wgCentralAuthCookieDomain (in case CentralAuth's implementation changes at some point). |
| 1814 | + */ |
| 1815 | + static function getCookieDomain() { |
| 1816 | + global $wgCentralAuthCookieDomain; |
| 1817 | + return $wgCentralAuthCookieDomain; |
| 1818 | + } |
1809 | 1819 | |
1810 | 1820 | /** |
1811 | 1821 | * Check a global auth token against the one we know of in the database. |