diff options
author | Ben Coburn <btcoburn@silicodon.net> | 2006-12-07 08:49:06 +0100 |
---|---|---|
committer | Ben Coburn <btcoburn@silicodon.net> | 2006-12-07 08:49:06 +0100 |
commit | ebf1501f6d253ef906c44bae278a2f80ffcb9f54 (patch) | |
tree | 433bac6de834b9584a965e87d39793fee0a846ac /inc/html.php | |
parent | 5aa52fafe8be8e728c0d2c9ff12c999e80766127 (diff) | |
download | rpg-ebf1501f6d253ef906c44bae278a2f80ffcb9f54.tar.gz rpg-ebf1501f6d253ef906c44bae278a2f80ffcb9f54.tar.bz2 |
changelog type strings replaced with constants
Using more verbose constant names in the place of single character strings
should make the code much more readable. This does not change the behavior
of the changelog.
darcs-hash:20061207074906-05dcb-0bdc35e7241bf14063b2b43a6ff26d8a3c307cb9.gz
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/html.php b/inc/html.php index dc11b17d7..672430cf1 100644 --- a/inc/html.php +++ b/inc/html.php @@ -469,7 +469,7 @@ function html_revisions($first=0){ print p_locale_xhtml('revisions'); print '<ul>'; if($INFO['exists'] && $first==0){ - print (isset($INFO['meta']) && isset($INFO['meta']['last_change']) && $INFO['meta']['last_change']['type']==='e') ? '<li class="minor">' : '<li>'; + print (isset($INFO['meta']) && isset($INFO['meta']['last_change']) && $INFO['meta']['last_change']['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<li class="minor">' : '<li>'; print '<div class="li">'; print $date; @@ -493,7 +493,7 @@ function html_revisions($first=0){ $date = date($conf['dformat'],$rev); $info = getRevisionInfo($ID,$rev,true); - print ($info['type']==='e') ? '<li class="minor">' : '<li>'; + print ($info['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<li class="minor">' : '<li>'; print '<div class="li">'; print $date; @@ -579,7 +579,7 @@ function html_recent($first=0){ foreach($recents as $recent){ $date = date($conf['dformat'],$recent['date']); - print ($recent['type']==='e') ? '<li class="minor">' : '<li>'; + print ($recent['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<li class="minor">' : '<li>'; print '<div class="li">'; print $date.' '; |