Ignore:
Timestamp:
Jan 25, 2007, 3:18:56 AM (18 years ago)
Author:
rvelices
Message:
  • user profiles available from admin page
  • user creation from admin page with email (bug 514)
  • some language cleanup
  • small template enhancements
  • php syntax corrections (my mistake)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.php

    r1719 r1753  
    103103
    104104  /**
     105   * Sets the template filename for handle.
     106   */
     107  function set_filename($handle, $filename)
     108    {
     109      return $this->set_filenames( array($handle=>$filename) );
     110    }
     111
     112  /**
    105113   * Sets the template filenames for handles. $filename_array should be a
    106114   * hash of handle => filename pairs.
     
    116124      while(list($handle, $filename) = each($filename_array))
    117125      {
    118         $this->files[$handle] = $this->make_filename($filename);
     126        if (is_null($filename))
     127        {
     128          unset( $this->files[$handle] );
     129        }
     130        else
     131        {
     132          $this->files[$handle] = $this->make_filename($filename);
     133        }
     134        unset($this->compiled_code[$handle]);
     135        unset($this->uncompiled_code[$handle]);
    119136      }
    120137
Note: See TracChangeset for help on using the changeset viewer.