public function WordpressMigrateStreamWrapper::getDirectoryPath in WordPress Migrate 7.2
Same name and namespace in other branches
- 7 wordpress_wrapper.inc \WordpressMigrateStreamWrapper::getDirectoryPath()
Implements abstract public function getDirectoryPath()
Overrides DrupalLocalStreamWrapper::getDirectoryPath
File
- ./
wordpress_wrapper.inc, line 15
Class
- WordpressMigrateStreamWrapper
- Wordpress Migrate (wordpress://) stream wrapper class.
Code
public function getDirectoryPath() {
// Allow override with an explicit path, not necessarily relative to
// file_private_path
$private_path = variable_get('wordpress_migrate_private_path', '');
if (!$private_path) {
$private_path = variable_get('file_private_path', '') . '/wordpress';
}
return $private_path;
}