Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -572,6 +572,12 @@ |
573 | 573 | /** To override default SQLite data directory ($docroot/../data) */ |
574 | 574 | $wgSQLiteDataDir = ''; |
575 | 575 | |
| 576 | +/** Default directory mode for SQLite data directory on creation. |
| 577 | + * Note that this is different from the default directory mode used |
| 578 | + * elsewhere. |
| 579 | + */ |
| 580 | +$wgSQLiteDataDirMode = 0700; |
| 581 | + |
576 | 582 | /** |
577 | 583 | * Make all database connections secretly go to localhost. Fool the load balancer |
578 | 584 | * thinking there is an arbitrarily large cluster of servers to connect to. |
Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -20,9 +20,9 @@ |
21 | 21 | * Constructor |
22 | 22 | */ |
23 | 23 | function __construct($server = false, $user = false, $password = false, $dbName = false, $failFunction = false, $flags = 0) { |
24 | | - global $wgOut,$wgSQLiteDataDir; |
| 24 | + global $wgOut,$wgSQLiteDataDir, $wgSQLiteDataDirMode; |
25 | 25 | if ("$wgSQLiteDataDir" == '') $wgSQLiteDataDir = dirname($_SERVER['DOCUMENT_ROOT']).'/data'; |
26 | | - if (!is_dir($wgSQLiteDataDir)) mkdir($wgSQLiteDataDir,0700); |
| 26 | + if (!is_dir($wgSQLiteDataDir)) wfMkdirParents( $wgSQLiteDataDir, $wgSQLiteDataDirMode ); |
27 | 27 | if (!isset($wgOut)) $wgOut = NULL; # Can't get a reference if it hasn't been set yet |
28 | 28 | $this->mOut =& $wgOut; |
29 | 29 | $this->mFailFunction = $failFunction; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -28,6 +28,9 @@ |
29 | 29 | * (bug 15080) $wgOverrideSiteFeed has been added. Setting either |
30 | 30 | $wgSiteFeed['rss'] or 'atom' to a URL will override the default Recent Changes |
31 | 31 | feed that appears on all pages. |
| 32 | +* $wgSQLiteDataDirMode has been introduced as the default directory mode for |
| 33 | + SQLite data directories on creation. Note this setting is separate from |
| 34 | + $wgDirectoryMode, which applies to all normal directories created by MediaWiki. |
32 | 35 | |
33 | 36 | === New features in 1.14 === |
34 | 37 | |