[web-doc] master: file in which "Lost wip's have been restored."

From: Date: Tue, 18 May 2021 01:43:05 +0000
Subject: [web-doc] master: file in which "Lost wip's have been restored."
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2473@lists.php.net to get a copy of this message
Author: Nilgün Belma Bugüner (nilgun) Date: 2021-05-18T04:32:51+03:00 Commit: https://github.com/php/web-doc/commit/39786592e1617941a65cd93a3e8aaf41bb3bc65a Raw diff: https://github.com/php/web-doc/commit/39786592e1617941a65cd93a3e8aaf41bb3bc65a.diff file in which "Lost wip's have been restored." Changed paths: M scripts/rev.php Diff: diff --git a/scripts/rev.php b/scripts/rev.php index fd5ea34..bd4963d 100644 --- a/scripts/rev.php +++ b/scripts/rev.php @@ -498,20 +498,17 @@ function captureGitValues( & $output ) $SQL_BUFF .= "INSERT INTO Untranslated VALUES ($id, '$lang', '$en->name', $size);\n"; } else { - if ( $trFile->completion != null && $trFile->completion != "ready" ) - { - $trFile->syncStatus = FileStatusEnum::TranslatedWip; - $SQL_BUFF .= "INSERT INTO wip VALUES ($id, '$lang', '$en->name', $size, '$trFile->maintainer');\n"; - continue; - } if ( $en->hash == $trFile->hash ){ $trFile->syncStatus = FileStatusEnum::TranslatedOk; } elseif ( strlen( $trFile->hash ) == 40 ) { $trFile->syncStatus = FileStatusEnum::TranslatedOld; } + if ( $trFile->completion != null && $trFile->completion != "ready" ) + $trFile->syncStatus = FileStatusEnum::TranslatedWip; $SQL_BUFF .= "INSERT INTO translated VALUES ($id, '$lang', '$en->name', '$trFile->hash', $size, '$trFile->maintainer', '$trFile->completion', '$trFile->syncStatus');\n"; + } } }

« previous php.doc.web (#2473) next »