Create a way for controllers to exempty themselves from maintenance

mode and private gallery mode by setting the following constants in
the controller to true.

  ALLOW_MAINTENANCE_MODE
  ALLOW_PRIVATE_GALLERY

Fixes #1411 and the subsequent refactoring fixes #1551 as well.
This commit is contained in:
Bharat Mediratta
2010-12-23 23:34:04 -08:00
parent 2b83918efd
commit b5ba61fc53
5 changed files with 48 additions and 29 deletions

View File

@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class Rest_Controller extends Controller {
const ALLOW_PRIVATE_GALLERY = true;
public function index() {
$username = Input::instance()->post("user");
$password = Input::instance()->post("password");