Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1173632
D231.id543.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Oct 1, 11:39 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Thu, Oct 2, 11:39 AM (21 h, 50 m)
Engine
blob
Format
Raw Data
Handle
760800
Attached To
D231: INP-1560 Migrate "mysql" to "mysqli" database type during upgrade
D231.id543.diff
View Options
Index: core/install.php
===================================================================
--- core/install.php
+++ core/install.php
@@ -292,13 +292,22 @@
case 'check_paths':
$writeable_base = $this->toolkit->systemConfig->get('WriteablePath', 'Misc');
- foreach ($this->writeableFolders as $folder_path) {
+
+ foreach ( $this->writeableFolders as $folder_path ) {
$file_path = FULL_PATH . str_replace('$1', $writeable_base, $folder_path);
- if (file_exists($file_path) && !is_writable($file_path)) {
- $this->errorMessage = '<br/>Installation can not continue until all required permissions are set correctly';
+
+ if ( file_exists($file_path) && !is_writable($file_path) ) {
+ $this->errorMessage = <<<'HTML'
+<br/>Installation can not continue until all required permissions are set correctly
+HTML;
break;
}
}
+
+ if ( !$this->errorMessage ) {
+ $this->toolkit->systemConfig->set('DBType', 'Database', 'mysqli');
+ $this->toolkit->systemConfig->save();
+ }
break;
case 'clean_db':
Event Timeline
Log In to Comment