No need for global variable here
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 3 Mar 2010 22:59:23 +0000 (15:59 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 4 Mar 2010 07:40:00 +0000 (00:40 -0700)
imp/lib/Dimp.php
imp/templates/common-header.inc

index 176ac22..5c8614f 100644 (file)
@@ -65,7 +65,6 @@ class IMP_Dimp
             $page_title .= ' :: ' . $title;
         }
 
-        $GLOBALS['imp_view'] = 'dimp';
         include IMP_BASE . '/templates/common-header.inc';
 
         // Send what we have currently output so the browser can start
index f7ccc94..5f26ca5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-$imp_view = Horde_Util::nonInputVar('imp_view');
+$imp_view = IMP::getViewMode();
 
 /* Do this include here so that the generated script can be added with any
  * other scripts already added. */