소스 검색

Minor cleanup

Fredrik Jervfors 20 년 전
부모
커밋
d2142eae1f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      plugins/fortune/functions.php

+ 2 - 2
plugins/fortune/functions.php

@@ -53,7 +53,7 @@ function fortune_function() {
         "<tr><td align=\"center\">\n";
         "<tr><td align=\"center\">\n";
     echo '<table><tr><td>';
     echo '<table><tr><td>';
     if (!$exist) {
     if (!$exist) {
-        echo sprintf(_("%s is not found."),$fortune_location);
+        printf(_("%s is not found."),$fortune_location);
     } else {
     } else {
         echo "<center><em>" . _("Today's Fortune") . "</em></center><pre>\n";
         echo "<center><em>" . _("Today's Fortune") . "</em></center><pre>\n";
         htmlspecialchars(system($fortune_command));
         htmlspecialchars(system($fortune_command));
@@ -90,4 +90,4 @@ function fortune_function_load() {
 
 
     $fortune_visible = getPref($data_dir, $username, 'fortune_visible');
     $fortune_visible = getPref($data_dir, $username, 'fortune_visible');
 }
 }
-?>
+?>