Author: Derick Rethans (derickr)
Date: 2026-08-10T10:35:42+01:00

Commit: 
https://github.com/php/web-php/commit/34e410302a41ae70d4e0cd6a4f6bfdae5304fa4d
Raw diff: 
https://github.com/php/web-php/commit/34e410302a41ae70d4e0cd6a4f6bfdae5304fa4d.diff

Fixed paths for news and conference pregenerated files

Changed paths:
  M  public/index.php
  M  src/News/NewsHandler.php


Diff:

diff --git a/public/index.php b/public/index.php
index 3d8e4d8feb..63f028ef87 100644
--- a/public/index.php
+++ b/public/index.php
@@ -52,7 +52,7 @@
 $_SERVER['BASE_PAGE'] = 'index.php';
 require_once __DIR__ . '/../include/prepend.inc';
 require_once __DIR__ . '/../include/branches.inc';
-require_once __DIR__ . '/../include/pregen-confs.inc';
+require_once __DIR__ . '/../include/public/pregen-confs.inc';
 require_once __DIR__ . '/../include/version.inc';
 
 mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365);
diff --git a/src/News/NewsHandler.php b/src/News/NewsHandler.php
index a7e97f766e..ffde5ddb82 100644
--- a/src/News/NewsHandler.php
+++ b/src/News/NewsHandler.php
@@ -74,7 +74,7 @@ public function getNewsByYear(int $year): array
     public function getPregeneratedNews(): array
     {
         $NEWS_ENTRIES = null;
-        include __DIR__ . '/../../include/pregen-news.inc';
+        include __DIR__ . '/../../public/include/pregen-news.inc';
 
         return is_array($NEWS_ENTRIES) ? $NEWS_ENTRIES : [];
     }

Reply via email to