* Changed the name of the wfNoMsg() function to wfEmptyMsg()
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 6 Sep 2005 16:52:11 +0000 (16:52 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 6 Sep 2005 16:52:11 +0000 (16:52 +0000)
includes/GlobalFunctions.php
includes/Skin.php
skins/MonoBook.php

index b09eef7..7ca2d6b 100644 (file)
@@ -1435,7 +1435,7 @@ function wfAppendToArrayIfNotDefault( $key, $value, $default, &$changed ) {
  * @param $wfMsgOut The output of wfMsg*()
  * @return bool
  */
-function wfNoMsg( $msg, $wfMsgOut ) {
+function wfEmptyMsg( $msg, $wfMsgOut ) {
        return $wfMsgOut === "&lt;$msg&gt;";
 }
 ?>
index 78e0ca8..607ffb6 100644 (file)
@@ -1329,9 +1329,9 @@ END;
                                        $link = wfMsgForContent( $line[0] );
                                        if ($link == '-')
                                                continue;
-                                       if (wfNoMsg($line[1], $text = wfMsg($line[1])))
+                                       if (wfEmptyMsg($line[1], $text = wfMsg($line[1])))
                                                $text = $line[1];
-                                       if (wfNoMsg($line[0], $link))
+                                       if (wfEmptyMsg($line[0], $link))
                                                $link = $line[0];
                                        $bar[$heading][] = array(
                                                'text' => $text,
index f46a9b3..0bc8590 100644 (file)
@@ -126,7 +126,7 @@ class MonoBookTemplate extends QuickTemplate {
        <script type="<?php $this->text('jsmimetype') ?>"> if (window.isMSIE55) fixalpha(); </script>
        <?php foreach ($this->data['sidebar'] as $bar => $cont) { ?>
        <div class='portlet' id='p-<?php echo htmlspecialchars($bar) ?>'>
-         <h5><?php $out = wfMsg( $bar ); if (wfNoMsg($bar, $out)) echo $bar; else echo $out; ?></h5>
+         <h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h5>
          <div class='pBody'>
            <ul>
            <?php foreach($cont as $key => $val) { ?>