Changeset 48

Show
Ignore:
Timestamp:
02/21/06 16:10:47 (2 years ago)
Author:
argh
Message:

Added default highlight color.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/patXMLPretty/ConfigReader.php

    r33 r48  
    88 * @see         patXMLPretty_ConfigReader 
    99 */ 
     10 
     11/** 
     12 * The default color that will be used when some color definitions 
     13 * are missing. This is ugly on purpose to quickly spot missing 
     14 * colors. 
     15 * 
     16 */ 
     17 define( 'PATXMLPRETTY_CONFIGREADER_DEFAULT_COLOR', 'ff00ff' ); 
    1018 
    1119/** 
     
    247255    function getColor( $element ) 
    248256    { 
     257        if( !isset( $this->colors[$element] ) ) { 
     258            return PATXMLPRETTY_CONFIGREADER_DEFAULT_COLOR; 
     259        } 
     260 
    249261        return $this->colors[$element]; 
    250262    }