Fixing the mess that was r29539:
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 10 Jan 2008 13:33:23 +0000 (13:33 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 10 Jan 2008 13:33:23 +0000 (13:33 +0000)
commit4c1c04dcae4e88b1ce698669b44ab343f41a3969
tree0f5aff08f25ccf5f7de7d5ac55252de95af960af
parentbd7eafea2027a9dee5cfeee4cc81fd2483b702bd
Fixing the mess that was r29539:
* $wgRequest shouldn't be used in functions like Article::doEdit() that are also called by API modules
* Moving code that decides whether the edit is bot out of DB logic and into UI logic: API and UI each decide indepentently from one another
* Removing $bot==='default' behavior from RecentChange::notifyEdit() and notifyNew(): nobody uses it, and it shouldn't be used anyway; whether the edit is bot should've been decided long ago
includes/Article.php
includes/EditPage.php
includes/RecentChange.php