Changeset 1012

Show
Ignore:
Timestamp:
07/11/08 01:35:34 (5 months ago)
Author:
bastnic
Message:

Shame on Loic M, so many mistakes on jMessage :
* the class set on the <li> element is the id of the element, not the type
* as $type is overwrited, the clear doesn't work

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/plugins/tpl/html/function.jmessage.php

    r1011 r1012  
    2828    if ($type == '') { 
    2929        echo '<ul class="jelix-msg">'; 
    30         foreach ($messages as $types) { 
    31             foreach ($types as $type => $msg) { 
    32                 echo '<li class="jelix-msg-item-'.$type.'">'.htmlspecialchars($msg).'</li>'; 
     30        foreach ($messages as $type_msg => $all_msg) { 
     31            foreach ($all_msg as $msg) { 
     32                echo '<li class="jelix-msg-item-'.$type_msg.'">'.htmlspecialchars($msg).'</li>'; 
    3333            } 
    3434        } 
     
    4242 
    4343    if ($type == '') { 
    44         jMessage::clearAll();; 
     44        jMessage::clearAll(); 
    4545    } else { 
    4646        jMessage::clear($type); 
Download in other formats: Unified Diff Zip Archive