Skip to content

Commit 61140f8

Browse files
committed
extension.json,DFRawFunctions.body.php: use relative path for DFRawPath
1 parent faa2f30 commit 61140f8

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

DFRawFunctions.body.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ private static function loadFile ($data)
8383
return $data;
8484

8585
global $wgDFRawPath;
86-
if ($wgDFRawPath == "")
87-
$wgDFRawPath = __DIR__ . '/raws';
8886
if (!is_dir($wgDFRawPath))
8987
return $data;
9088

extension.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
"description": "Enables reading files from disk"
2424
},
2525
"DFRawPath": {
26-
"value": "",
27-
"description": "Absolute path to raws directory, when empty use 'raws' directory in extension catalog"
26+
"value": "raws",
27+
"path": true,
28+
"description": "Relative path to raws directory"
2829
},
2930
"DFRawVersion": {
3031
"value": "",

0 commit comments

Comments
 (0)