Completed
Push — master ( da29ba...7e38e2 )
by Michael
01:51
created

header.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * header.php - common startup for most scripts
4
 *
5
 * @copyright  Copyright © 2013 geekwright, LLC. All rights reserved.
6
 * @license    gwiki/docs/license.txt  GNU General Public License (GPL)
7
 * @since      1.0
8
 * @author     Richard Griffith <[email protected]>
9
 * @package    gwiki
10
 */
11
12
include dirname(dirname(__DIR__)) . '/mainfile.php';
13
include_once __DIR__ . '/include/functions.php';
14
15 View Code Duplication
if (file_exists('language/' . $xoopsConfig['language'] . '/modinfo.php')) {
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
16
    include_once __DIR__ . '/language/' . $xoopsConfig['language'] . '/modinfo.php';
17
} else {
18
    include_once __DIR__ . '/language/english/modinfo.php';
19
}
20