Index: trunk/phase3/includes/User.php |
— | — | @@ -699,6 +699,7 @@ |
700 | 700 | * @deprecated use wfSetupSession() |
701 | 701 | */ |
702 | 702 | function SetupSession() { |
| 703 | + trigger_error( 'Use of ' . __METHOD__ . ' is deprecated', E_USER_NOTICE ); |
703 | 704 | wfSetupSession(); |
704 | 705 | } |
705 | 706 | |
— | — | @@ -1163,6 +1164,7 @@ |
1164 | 1165 | * @deprecated use User::newFromId() |
1165 | 1166 | */ |
1166 | 1167 | function setID( $v ) { |
| 1168 | + trigger_error( 'Use of ' . __METHOD__ . ' is deprecated', E_USER_NOTICE ); |
1167 | 1169 | $this->mId = $v; |
1168 | 1170 | $this->clearInstanceCache( 'id' ); |
1169 | 1171 | } |
— | — | @@ -1758,6 +1760,7 @@ |
1759 | 1761 | * @deprecated |
1760 | 1762 | */ |
1761 | 1763 | function isBot() { |
| 1764 | + trigger_error( 'Use of ' . __METHOD__ . ' is deprecated', E_USER_NOTICE ); |
1762 | 1765 | return $this->isAllowed( 'bot' ); |
1763 | 1766 | } |
1764 | 1767 | |
— | — | @@ -2208,7 +2211,9 @@ |
2209 | 2212 | /** |
2210 | 2213 | * @deprecated |
2211 | 2214 | */ |
2212 | | - function setLoaded( $loaded ) {} |
| 2215 | + function setLoaded( $loaded ) { |
| 2216 | + trigger_error( 'Use of ' . __METHOD__ . ' is deprecated', E_USER_NOTICE ); |
| 2217 | + } |
2213 | 2218 | |
2214 | 2219 | /** |
2215 | 2220 | * Get this user's personal page title. |