소스 검색

tools/inc/lib/jsgettext/: apply fixes from bugtracker

tags/vichan-devel-4.4.92
czaks Michael Foster 11 년 전
부모
커밋
79b6428718
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. +6
    -2
      tools/inc/lib/jsgettext/jsgettext.php

+ 6
- 2
tools/inc/lib/jsgettext/jsgettext.php 파일 보기

@@ -10,7 +10,7 @@
'-k' => '_'
);
$len = count($args);
$i = 0;
$i = 1;
while ($i < $len) {
if (preg_match('#^-[a-z]$#i', $args[$i])) {
$options[$args[$i]] = isset($args[$i+1]) ? trim($args[$i+1]) : true;
@@ -26,7 +26,11 @@

$options = buildOptions($argv);

if (!file_exists($options['-o']) || !is_writable($options['-o'])) {
if (!file_exists($options['-o'])) {
touch($options['-o']);
}

if (!is_writable($options['-o'])) {
die("Invalid output file name. Make sure it exists and is writable.");
}



불러오는 중...
취소
저장