Skip to content

Commit 812eed5

Browse files
authored
Improve prompts in createNewsEntry script (#1516)
1 parent b0c6afa commit 812eed5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/createNewsEntry

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function getConfTime(): int { for(;;) {
107107
function getImage(): ?array {
108108
global $imageRestriction;
109109

110-
fwrite(STDOUT, "Will a picture be accompanying this entry? ");
110+
fwrite(STDOUT, "Will a picture be accompanying this entry?(y/N) ");
111111
$yn = fgets(STDIN);
112112

113113

@@ -129,7 +129,7 @@ function getImage(): ?array {
129129
$imageSizes = getimagesize("./images/news/$path");
130130

131131
if (($imageSizes[0] > $imageRestriction['width']) || ($imageSizes[1] > $imageRestriction['height'])) {
132-
fwrite(STDOUT, "Provided image has a higher size than recommended (" . implode(' by ', $imageRestriction) . "). Continue? ");
132+
fwrite(STDOUT, "Provided image has a higher size than recommended (" . implode(' by ', $imageRestriction) . "). Continue with this image?(y/N) ");
133133
$ynImg = fgets(STDIN);
134134
if (strtoupper($ynImg[0]) !== "Y") {
135135
$isValidImage = false;

0 commit comments

Comments
 (0)