dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d50a47b
)
Make ot=html default, as most user will probably use that view. ENH#185
author
Jens Frank
<jeluf@users.mediawiki.org>
Wed, 25 Aug 2004 19:18:34 +0000
(19:18 +0000)
committer
Jens Frank
<jeluf@users.mediawiki.org>
Wed, 25 Aug 2004 19:18:34 +0000
(19:18 +0000)
includes/SpecialAllmessages.php
patch
|
blob
|
history
diff --git
a/includes/SpecialAllmessages.php
b/includes/SpecialAllmessages.php
index
dd05902
..
1a787bc
100644
(file)
--- a/
includes/SpecialAllmessages.php
+++ b/
includes/SpecialAllmessages.php
@@
-25,13
+25,13
@@
wfProfileOut( "$fname-setup" );
wfProfileIn( "$fname-output" );
wfProfileOut( "$fname-setup" );
wfProfileIn( "$fname-output" );
- if ($ot == 'html') {
+ if ($ot == 'php') {
+ $navText .= makePhp($messages);
+ $wgOut->addHTML('PHP | <a href="'.$wgTitle->escapeLocalUrl('ot=html').'">HTML</a><pre>'.htmlspecialchars($navText).'</pre>');
+ } else {
$wgOut->addHTML( '<a href="'.$wgTitle->escapeLocalUrl('ot=php').'">PHP</a> | HTML' );
$wgOut->addWikiText( $navText );
$wgOut->addHTML( makeHTMLText( $messages ) );
$wgOut->addHTML( '<a href="'.$wgTitle->escapeLocalUrl('ot=php').'">PHP</a> | HTML' );
$wgOut->addWikiText( $navText );
$wgOut->addHTML( makeHTMLText( $messages ) );
- } else {
- $navText .= makePhp($messages);
- $wgOut->addHTML('PHP | <a href="'.$wgTitle->escapeLocalUrl('ot=html').'">HTML</a><pre>'.htmlspecialchars($navText).'</pre>');
}
wfProfileOut( "$fname-output" );
}
wfProfileOut( "$fname-output" );