[horde] MIMP : I find out a bug I resolved

Jan Schneider jan at horde.org
Wed Nov 5 18:08:36 UTC 2008


Please make this a patch and post it on http://bugs.horde.org/.

Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr>:

> Hello,
>
> I wanted to add a link "Accueil" to the menu of Mimp by using   
> config/menu.php  but unsuccessfull.
> So, here is what I modified so that it could works.
>
> mimp/config/menu.php
>
> This  pattern is not correct $_menu[] = array( 'url' =>         
> 'http://www.example.com/',  'text' =>       'Example, Inc.');
> The good pattern is :
> $_menu = array( 'your url' =>        'your text');
>
> for example in my case  :  $_menu = array( '/dimp' =>        'Accueil');
>
> mimp/index.php
>
> I added :
> if (is_readable(MIMP_BASE . '/config/menu.php')) {
>    require MIMP_BASE . '/config/menu.php';
> }
>
> mimp/mailbox.php
>
> Before the "foreach of $items" I added :
>
> foreach ($_menu as $link => $label) {
>    $mset->add(new Horde_Mobile_link($label, $link));
> }
>
> After having these modifications my link "Accueil" is added at the  
> top of the menu. I hope my humble contribution will be usefull.
>
> Best regards
>
> Gerard
>
>
>
>
>
>
>
>
> -- 
> Université Paris-Sud 11
> Institut D'Astrophysique Spatiale
> Gérard Breiner
> Rue Georges Clémenceau
> fr-91405 Orsay-ville --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>



Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list