| @@ 185-194 (lines=10) @@ | ||
| 182 | * @param string $dir A valid path |
|
| 183 | * @return boolean If this was successful or not. |
|
| 184 | */ |
|
| 185 | public function setCachedir($dir = null) |
|
| 186 | { |
|
| 187 | global $cachedir; |
|
| 188 | ||
| 189 | // If its invalid, use SMF's. |
|
| 190 | if (is_null($dir) || !is_writable($dir)) |
|
| 191 | $this->cachedir = $cachedir; |
|
| 192 | else |
|
| 193 | $this->cachedir = $dir; |
|
| 194 | } |
|
| 195 | ||
| 196 | /** |
|
| 197 | * Gets the current $cachedir. |
|
| @@ 147-156 (lines=10) @@ | ||
| 144 | * |
|
| 145 | * @return boolean If this was successful or not. |
|
| 146 | */ |
|
| 147 | public function setCachedir($dir = null) |
|
| 148 | { |
|
| 149 | global $cachedir_sqlite; |
|
| 150 | ||
| 151 | // If its invalid, use SMF's. |
|
| 152 | if (is_null($dir) || !is_writable($dir)) |
|
| 153 | $this->cachedir = $cachedir_sqlite; |
|
| 154 | else |
|
| 155 | $this->cachedir = $dir; |
|
| 156 | } |
|
| 157 | ||
| 158 | /** |
|
| 159 | * {@inheritDoc} |
|