| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | function loadSettings() { |
||
| 47 | global $wgCommandLineMode, $IP; |
||
| 48 | |||
| 49 | $settingsFile = "$IP/LocalSettings.php"; |
||
| 50 | |||
| 51 | if ( !is_readable( $settingsFile ) ) { |
||
| 52 | $this->error( "A copy of your installation's LocalSettings.php\n" . |
||
|
|
|||
| 53 | "must exist and be readable in the source directory.\n" . |
||
| 54 | "Use --conf to specify it.", true ); |
||
| 55 | } |
||
| 56 | $wgCommandLineMode = true; |
||
| 57 | return $settingsFile; |
||
| 58 | } |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.