[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] [doc-base] master: fixed E_WARNING related to $history_file
From: Yoshinari Takaoka <noreply () php ! net>
Date: 2024-04-28 19:11:50
Message-ID: QlOsi17jwJyjbr8smSujqJyJ1I7zbI2l8ViZ651mc () main ! php ! net
[Download RAW message or body]
Author: Yoshinari Takaoka (mumumu)
Date: 2024-04-29T04:10:36+09:00
Commit: https://github.com/php/doc-base/commit/dce7ce103ce5da0216549060e5bf1fb77284eb74
Raw diff: https://github.com/php/doc-base/commit/dce7ce103ce5da0216549060e5bf1fb77284eb74.diff
fixed E_WARNING related to $history_file
PHP Warning: Undefined variable $history_file in \
/home/mumumu/phpdoc/doc-base/configure.php on line 315 PHP Stack trace:
PHP 1. {main}() /home/mumumu/phpdoc/doc-base/configure.php:0
PHP 2. getFileModificationHistory() /home/mumumu/phpdoc/doc-base/configure.php:727
Changed paths:
M configure.php
Diff:
diff --git a/configure.php b/configure.php
index 2eb0ab530..e8ff9edba 100755
--- a/configure.php
+++ b/configure.php
@@ -299,6 +299,7 @@ function getFileModificationHistory(): array {
$lang_mod_file = (($ac['LANG'] !== 'en') ? ("{$ac['rootdir']}/{$ac['EN_DIR']}") \
: ("{$ac['rootdir']}/{$ac['LANGDIR']}")) . "/fileModHistory.php"; $doc_base_mod_file \
= __DIR__ . "/fileModHistory.php";
+ $history_file = null;
if (file_exists($lang_mod_file)) {
$history_file = include $lang_mod_file;
if (is_array($history_file)) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic