浏览代码

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