This happens because code is in millennium_init() and Drupal is still executing Bootstrap.

Comments

janusman’s picture

Status: Active » Needs review
StatusFileSize
new1.89 KB

This patch moves things to make it work.

janusman’s picture

StatusFileSize
new2.17 KB

Improvement: This loads the admin.inc files only on some paths.

janusman’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.