Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 477742 | Differences between
and this patch

Collapse All | Expand All

(-)a/share/server/core/classes/GlobalMainCfg.php (-2 / +2 lines)
Lines 1391-1398 Link Here
1391
     * @author	Roman Kyrylych <rkyrylych@op5.com>
1391
     * @author	Roman Kyrylych <rkyrylych@op5.com>
1392
     */
1392
     */
1393
    private function getBasePath() {
1393
    private function getBasePath() {
1394
        // Go 3 levels up from nagvis/share/nagvis to nagvis base path
1394
        // Go 2 levels up from share/nagvis to nagvis base path
1395
        return realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../../..') . '/';
1395
        return realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../..') . '/';
1396
        // Note: the method below causes problems when <docroot>/nagvis is a symlink to <nagvis-base>/share
1396
        // Note: the method below causes problems when <docroot>/nagvis is a symlink to <nagvis-base>/share
1397
        // return realpath(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])))).'/';
1397
        // return realpath(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])))).'/';
1398
    }
1398
    }

Return to bug 477742