Fix missing injector call
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 May 2010 05:11:53 +0000 (23:11 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 May 2010 05:11:53 +0000 (23:11 -0600)
imp/compose.php

index effcaef..2db0da1 100644 (file)
@@ -97,6 +97,7 @@ $compose_disable = !IMP::canCompose();
 /* Determine if mailboxes are readonly. */
 $readonly_drafts = $readonly_sentmail = false;
 $draft = IMP::folderPref($prefs->getValue('drafts_folder'), true);
+$imp_imap = $injector->getInstance('IMP_Imap')->getOb();
 if (!empty($draft)) {
     $readonly_drafts = $imp_imap->isReadOnly($draft);
 }