Changeset 1086

Show
Ignore:
Timestamp:
09/01/06 07:00:58 (5 years ago)
Author:
benoitg
Message:
  • Content.php: Improve handling of simple but persistent content.
Location:
trunk/wifidog-auth
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/CHANGELOG

    r1085 r1086  
     12006-09-01 Benoit Grégoire  <bock@step.polymtl.ca> 
     2        * Content.php:  Improve handling of simple but persistent content. 
     3         
    142006-08-31 Benoit Grégoire  <bock@step.polymtl.ca> 
    25        * Server.php:  Make sure getCurrentServer returns the default server if the hostname isn't recognised. 
  • trunk/wifidog-auth/wifidog/classes/Content.php

    r1085 r1086  
    11711171        } else { 
    11721172           // Content metadata 
    1173             if ($this->is_trivial_content == false) { 
     1173            if ($this->is_trivial_content == false || $this->isPersistent()) { 
    11741174                        $html .= "<fieldset class='admin_element_group'>\n"; 
    11751175                                $html .= "<legend>".sprintf(_("%s MetaData"),get_class($this))."</legend>\n"; 
     
    11981198                } 
    11991199                $html .= "</li>\n"; 
    1200  
     1200            } 
     1201             
     1202            if ($this->is_trivial_content == false) { 
    12011203                /* description */ 
    12021204                $html .= "<li class='admin_element_item_container admin_section_edit_description'>\n"; 
     
    12491251                } 
    12501252                $html .= "</li>\n"; 
    1251             }//End content medatada 
     1253            } 
    12521254             
     1255            //End content medatada 
     1256                        if ($this->is_trivial_content == false || $this->isPersistent()) { 
     1257                        $html .= "</fieldset>\n"; 
     1258                        } 
    12531259            if ($this->is_trivial_content == false || $this->isPersistent()) {                   
    12541260                $html .= "<fieldset class='admin_element_group'>\n"; 
     
    13231329            } else 
    13241330            {//Content medatada 
    1325                             /* title_is_displayed */ 
     1331 
     1332                 
     1333                            if ($this->is_trivial_content == false || $this->isPersistent()) { 
     1334                                            /* title_is_displayed */ 
    13261335                if (!empty ($this->content_row['title'])){ 
    13271336                $name = "content_".$this->id."_title_is_displayed"; 
    13281337                !empty ($_REQUEST[$name]) ? $this->setTitleIsDisplayed(true) : $this->setTitleIsDisplayed(false); 
    13291338                } 
    1330                  
    1331                 if ($this->is_trivial_content == false) { 
    13321339                    /* title */ 
    13331340                    if (empty ($this->content_row['title'])) { 
     
    13471354                        } 
    13481355                    } 
    1349  
     1356                            } 
     1357                            if ($this->is_trivial_content == false) { 
    13501358                    /* description */ 
    13511359                    if (empty ($this->content_row['description'])) {