File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 117117// send them to the /releases page since that is likely to be most helpful.
118118if (preg_match ("!^distributions/.*! " , $ URI , $ array )) {
119119 status_header (404 );
120- require_once __DIR__ . "/releases/index.php " ;
120+ require_once ProjectGlobals:: getPublicRoot () . "/releases/index.php " ;
121121}
122122
123123// ============================================================================
144144
145145 $ df = $ dlinfo [1 ];
146146 if (strpos ($ df , "7-LATEST " ) !== false ) {
147- require_once __DIR__ . "/include/version.inc " ;
147+ require_once __DIR__ . "/../ include/version.inc " ;
148148 [$ latest ] = release_get_latest ();
149149 $ df = str_replace ("7-LATEST " , $ latest , $ df );
150150 }
743743
744744// ============================================================================
745745// Try to find the page using the preferred language as a manual page
746- require_once __DIR__ . "/include/manual-lookup.inc " ;
746+ require_once ProjectGlobals:: getProjectRoot () . "/include/manual-lookup.inc " ;
747747$ try = find_manual_page ($ LANG , $ URI );
748748if ($ try ) {
749749 status_header (200 );
You can’t perform that action at this time.
0 commit comments