Index: branches/wmf/1.16wmf4/extensions/CentralAuth/CentralAuthUser.php |
— | — | @@ -1753,6 +1753,16 @@ |
1754 | 1754 | } |
1755 | 1755 | |
1756 | 1756 | /** |
| 1757 | + * Get the domain parameter for setting a global cookie. |
| 1758 | + * This allows other extensions to easily set global cookies without directly relying on |
| 1759 | + * $wgCentralAuthCookieDomain (in case CentralAuth's implementation changes at some point). |
| 1760 | + */ |
| 1761 | + static function getCookieDomain() { |
| 1762 | + global $wgCentralAuthCookieDomain; |
| 1763 | + return $wgCentralAuthCookieDomain; |
| 1764 | + } |
| 1765 | + |
| 1766 | + /** |
1757 | 1767 | * Check a global auth token against the one we know of in the database. |
1758 | 1768 | */ |
1759 | 1769 | function validateAuthToken( $token ) { |
Property changes on: branches/wmf/1.16wmf4/extensions/CentralAuth/CentralAuthUser.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
1760 | 1770 | Merged /trunk/extensions/CentralAuth/CentralAuthUser.php:r80370 |
Property changes on: branches/wmf/1.16wmf4/extensions/CentralAuth |
___________________________________________________________________ |
Modified: svn:mergeinfo |
1761 | 1771 | Merged /trunk/extensions/CentralAuth:r80370 |