Index: branches/wmf/1.17wmf1/extensions/CentralAuth/CentralAuthUser.php |
— | — | @@ -1746,6 +1746,16 @@ |
1747 | 1747 | |
1748 | 1748 | self::deleteSession(); |
1749 | 1749 | } |
| 1750 | + |
| 1751 | + /** |
| 1752 | + * Get the domain parameter for setting a global cookie. |
| 1753 | + * This allows other extensions to easily set global cookies without directly relying on |
| 1754 | + * $wgCentralAuthCookieDomain (in case CentralAuth's implementation changes at some point). |
| 1755 | + */ |
| 1756 | + static function getCookieDomain() { |
| 1757 | + global $wgCentralAuthCookieDomain; |
| 1758 | + return $wgCentralAuthCookieDomain; |
| 1759 | + } |
1750 | 1760 | |
1751 | 1761 | /** |
1752 | 1762 | * Check a global auth token against the one we know of in the database. |
Property changes on: branches/wmf/1.17wmf1/extensions/CentralAuth/CentralAuthUser.php |
___________________________________________________________________ |
Added: svn:mergeinfo |
1753 | 1763 | Merged /branches/new-installer/phase3/extensions/CentralAuth/CentralAuthUser.php:r43664-66004 |
1754 | 1764 | Merged /branches/wmf-deployment/extensions/CentralAuth/CentralAuthUser.php:r60970 |
1755 | 1765 | Merged /branches/REL1_15/phase3/extensions/CentralAuth/CentralAuthUser.php:r51646 |
1756 | 1766 | Merged /branches/wmf/1.16wmf4/extensions/CentralAuth/CentralAuthUser.php:r67177,69199,76243,77266 |
1757 | 1767 | Merged /trunk/extensions/CentralAuth/CentralAuthUser.php:r80370 |
1758 | 1768 | Merged /branches/sqlite/extensions/CentralAuth/CentralAuthUser.php:r58211-58321 |
1759 | 1769 | Merged /trunk/phase3/extensions/CentralAuth/CentralAuthUser.php:r79828,79830,79848,79853,79950-79951,79954,79989,80006-80007,80013,80016,80080,80083,80124,80128,80238,81833 |