[bugs] [Bug 1005] New - IMP: header error for default template imp/templates/login/login.inc

bugs@bugs.horde.org bugs@bugs.horde.org
Mon, 29 Jul 2002 21:58:02 -0300


http://bugs.horde.org/show_bug.cgi?id=1005

*** shadow/1005	Mon Jul 29 21:58:02 2002
--- shadow/1005.tmp.21971	Mon Jul 29 21:58:02 2002
***************
*** 0 ****
--- 1,33 ----
+ Bug#: 1005
+ Product: Horde
+ Version: 2.1 Unstable
+ Platform: Mozilla 5.x
+ OS/Version: Linux
+ Status: NEW   
+ Resolution: 
+ Severity: normal
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck@horde.org                            
+ ReportedBy: lawrence.ong@aic.net.au               
+ URL: 
+ Summary: IMP: header error for default template imp/templates/login/login.inc
+ 
+ In the header section for IMP's login.inc, we have:
+ 
+ <?php printf(_("Welcome to %s"), ($registry->getMethod('auth/login') == 'imp') ?
+ $registry->getParam('name', 'horde') : $registry->getParam('name')) ?>
+ 
+ I think we are suppose to have:
+ 
+ $registry->getParam('name', 'horde') and $registry->getParam('name') switched
+ around.
+ 
+ If the login type is imp, most would want to display the IMP's name instead of
+ horde's name and vice versa.
+ 
+ Fix to:
+ 
+ <?php printf(_("Welcome to %s"), ($registry->getMethod('auth/login') == 'imp') ?
+ $registry->getParam('name') : $registry->getParam('name', 'horde')) ?>