File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 115115// send them to the /releases page since that is likely to be most helpful.
116116if (preg_match ("!^distributions/.*! " , $ URI , $ array )) {
117117 status_header (404 );
118- require_once __DIR__ . "/releases/index.php " ;
118+ require_once ProjectGlobals:: getPublicRoot () . "/releases/index.php " ;
119119}
120120
121121// ============================================================================
142142
143143 $ df = $ dlinfo [1 ];
144144 if (strpos ($ df , "7-LATEST " ) !== false ) {
145- require_once __DIR__ . "/include/version.inc " ;
145+ require_once __DIR__ . "/../ include/version.inc " ;
146146 [$ latest ] = release_get_latest ();
147147 $ df = str_replace ("7-LATEST " , $ latest , $ df );
148148 }
740740
741741// ============================================================================
742742// Try to find the page using the preferred language as a manual page
743- require_once __DIR__ . "/include/manual-lookup.inc " ;
743+ require_once ProjectGlobals:: getProjectRoot () . "/include/manual-lookup.inc " ;
744744$ try = find_manual_page ($ LANG , $ URI );
745745if ($ try ) {
746746 status_header (200 );
You can’t perform that action at this time.
0 commit comments