cvs: phd / config.php
| From: | Hannes Magnusson | Date: | Fri, 11 Jan 2008 19:51:04 +0000 |
| Subject: | cvs: phd / config.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1028@lists.php.net to get a copy of this message | ||
bjori Fri Jan 11 19:51:04 2008 UTC
Modified files:
/phd config.php
Log:
- Unkown => Unknown
- Add "error message" when passing unknown argument to -l/--list
http://cvs.php.net/viewvc.cgi/phd/config.php?r1=1.19&r2=1.20&diff_format=u
Index: phd/config.php
diff -u phd/config.php:1.19 phd/config.php:1.20
--- phd/config.php:1.19 Thu Jan 10 17:53:21 2008
+++ phd/config.php Fri Jan 11 19:51:04 2008
@@ -1,5 +1,5 @@
<?php
-/* $Id: config.php,v 1.19 2008/01/10 17:53:21 bjori Exp $ */
+/* $Id: config.php,v 1.20 2008/01/11 19:51:04 bjori Exp $ */
function v($msg) {
$args = func_get_args();
@@ -156,6 +156,10 @@
echo "\tbightml\n";
break;
+ default:
+ echo "Unknown list type '$val'\n";
+ /* break omitted intentionally */
+
case false:
echo "Supported formats:\n";
echo "\txhtml\n";
@@ -204,7 +208,7 @@
}
break;
default:
- v("Unkown theme '%s'\n", $val);
+ v("Unknown theme '%s'\n", $val);
exit(-1);
}
}
@@ -220,7 +224,7 @@
} elseif (is_numeric($const)) {
$verbose |= (int)$const;
} else {
- v("Unkown option passed to --$k, $const\n");
+ v("Unknown option passed to --$k, $const\n");
}
}
}