summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorhenning.noren <henning.noren@gmail.com>2007-01-03 21:57:00 +0100
committerhenning.noren <henning.noren@gmail.com>2007-01-03 21:57:00 +0100
commit44881bd0f492e789063188af34111af4b4117028 (patch)
tree5d54c53e786bbfe45a3dfe0efda26e51c6ca5fc6 /inc/parser/xhtml.php
parentbab4a8bd9772137a187f48beb6e61c185932b692 (diff)
downloadrpg-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/xhtml.php')
-rw-r--r--inc/parser/xhtml.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 1fadf02c7..088180eef 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -721,7 +721,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$link['url'] = ml($src,array('id'=>$ID,'cache'=>$cache),($linking=='direct'));
}elseif($mime == 'application/x-shockwave-flash'){
// don't link flash movies
- $noLink = TRUE;
+ $noLink = true;
}else{
// add file icons
$class = preg_replace('/[^_\-a-z0-9]+/i','_',$ext);
@@ -758,10 +758,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
list($ext,$mime) = mimetype($src);
if(substr($mime,0,5) == 'image'){
// link only jpeg images
- // if ($ext != 'jpg' && $ext != 'jpeg') $noLink = TRUE;
+ // if ($ext != 'jpg' && $ext != 'jpeg') $noLink = true;
}elseif($mime == 'application/x-shockwave-flash'){
// don't link flash movies
- $noLink = TRUE;
+ $noLink = true;
}else{
// add file icons
$link['class'] .= ' mediafile mf_'.$ext;
@@ -1059,7 +1059,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
function _getLinkTitle($title, $default, & $isImage, $id=NULL) {
global $conf;
- $isImage = FALSE;
+ $isImage = false;
if ( is_null($title) ) {
if ($conf['useheading'] && $id) {
$heading = p_get_first_heading($id);
@@ -1071,7 +1071,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
} else if ( is_string($title) ) {
return $this->_xmlEntities($title);
} else if ( is_array($title) ) {
- $isImage = TRUE;
+ $isImage = true;
return $this->_imageTitle($title);
}
}