@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * {@inheritDoc} |
|
42 | - */ |
|
41 | + * {@inheritDoc} |
|
42 | + */ |
|
43 | 43 | public function connect() |
44 | 44 | { |
45 | 45 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | */ |
116 | 116 | public function cacheSettings(array &$config_vars) |
117 | 117 | { |
118 | - global $context, $txt; |
|
118 | + global $context, $txt; |
|
119 | 119 | |
120 | 120 | $config_vars[] = $txt['cache_sqlite_settings']; |
121 | 121 | $config_vars[] = array('cachedir_sqlite', $txt['cachedir_sqlite'], 'file', 'text', 36, 'cache_sqlite_cachedir'); |
@@ -139,13 +139,13 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function setCachedir($dir = null) |
141 | 141 | { |
142 | - global $cachedir_sqlite; |
|
142 | + global $cachedir_sqlite; |
|
143 | 143 | |
144 | - // If its invalid, use SMF's. |
|
145 | - if (is_null($dir) || !is_writable($dir)) |
|
146 | - $this->cachedir = $cachedir_sqlite; |
|
147 | - else |
|
148 | - $this->cachedir = $dir; |
|
144 | + // If its invalid, use SMF's. |
|
145 | + if (is_null($dir) || !is_writable($dir)) |
|
146 | + $this->cachedir = $cachedir_sqlite; |
|
147 | + else |
|
148 | + $this->cachedir = $dir; |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | } |