Changeset 766


Ignore:
Timestamp:
Apr 1, 2022 5:38:25 AM (2 years ago)
Author:
anonymous
Message:

Only source local codebase if version is > 2.1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/_config.inc.php

    r757 r766  
    7171
    7272// Include core libraries: try local codebase path first, otherwise use global.
    73 (@include_once 'codebase/lib/App.inc.php') || require_once CODEBASE_PATH . '/lib/App.inc.php';
     73if (file_exists('codebase/docs/version.txt') && version_compare(file_get_contents('codebase/docs/version.txt'), '2.1.0', '>')) {
     74    require_once 'codebase/lib/App.inc.php';
     75} else {
     76    require_once CODEBASE_PATH . '/lib/App.inc.php';
     77}
    7478
    7579define('_CLI', true);
Note: See TracChangeset for help on using the changeset viewer.