diff options
author | henning.noren <henning.noren@gmail.com> | 2007-01-03 21:57:00 +0100 |
---|---|---|
committer | henning.noren <henning.noren@gmail.com> | 2007-01-03 21:57:00 +0100 |
commit | 44881bd0f492e789063188af34111af4b4117028 (patch) | |
tree | 5d54c53e786bbfe45a3dfe0efda26e51c6ca5fc6 /inc/parser/xhtmlsummary.php | |
parent | bab4a8bd9772137a187f48beb6e61c185932b692 (diff) | |
download | rpg-44881bd0f492e789063188af34111af4b4117028.tar.gz rpg-44881bd0f492e789063188af34111af4b4117028.tar.bz2 |
tf_rename_lower.patch
Name the TRUE/FALSE-constants consistently as lowercase everywhere.
This might also be an tiny optimization in some environments.
darcs-hash:20070103205700-d2a3e-e7ec0aedb938d563f583116a2d5b17f3a3fea36c.gz
Diffstat (limited to 'inc/parser/xhtmlsummary.php')
-rw-r--r-- | inc/parser/xhtmlsummary.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/inc/parser/xhtmlsummary.php b/inc/parser/xhtmlsummary.php index d6e3fc8b9..b82c564ed 100644 --- a/inc/parser/xhtmlsummary.php +++ b/inc/parser/xhtmlsummary.php @@ -23,10 +23,10 @@ class Doku_Renderer_xhtmlsummary extends Doku_Renderer_xhtml { // Namespace these variables to // avoid clashes with parent classes var $sum_paragraphs = 0; - var $sum_capture = TRUE; - var $sum_inSection = FALSE; + var $sum_capture = true; + var $sum_inSection = false; var $sum_summary = ''; - var $sum_pageTitle = FALSE; + var $sum_pageTitle = false; function document_start() { $this->doc .= DOKU_LF.'<div>'.DOKU_LF; @@ -50,7 +50,7 @@ class Doku_Renderer_xhtmlsummary extends Doku_Renderer_xhtml { function header($text, $level, $pos) { if ( !$this->sum_pageTitle ) { $this->info['sum_pagetitle'] = $text; - $this->sum_pageTitle = TRUE; + $this->sum_pageTitle = true; } $this->doc .= DOKU_LF.'<h'.$level.'>'; $this->doc .= $this->_xmlEntities($text); @@ -59,14 +59,14 @@ class Doku_Renderer_xhtmlsummary extends Doku_Renderer_xhtml { function section_open($level) { if ( $this->sum_capture ) { - $this->sum_inSection = TRUE; + $this->sum_inSection = true; } } function section_close() { if ( $this->sum_capture && $this->sum_inSection ) { $this->sum_summary .= $this->doc; - $this->sum_capture = FALSE; + $this->sum_capture = false; } } @@ -81,7 +81,7 @@ class Doku_Renderer_xhtmlsummary extends Doku_Renderer_xhtml { parent :: p_close(); if ( $this->sum_capture && $this->sum_paragraphs >= 2 ) { $this->sum_summary .= $this->doc; - $this->sum_capture = FALSE; + $this->sum_capture = false; } } |