*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*/
if ( !is_null( $params['lang'] ) && $params['lang'] != $wgLang->getCode() ) {
$oldLang = $wgLang; // Keep $wgLang for restore later
$wgLang = Language::factory( $params['lang'] );
+ } else if ( is_null( $params['lang'] ) ) {
+ // Language not determined by URL but by user preferences, so don't cache
+ $this->getMain()->setVaryCookie();
}
$prop = array_flip( (array)$params['prop'] );
}
// Get all requested messages and print the result
- $messages = array();
$skip = !is_null( $params['from'] );
$result = $this->getResult();
foreach ( $messages_target as $message ) {
}
public function getDescription() {
- return 'Return messages from this site.';
+ return 'Return messages from this site';
}
protected function getExamples() {