blob: 1b1948a15f8455a290af0c81f8e9b13c9a575dd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
/**
* @file
* Definition of TranslationStreamWrapper.
*/
/**
* A Drupal interface translations (translations://) stream wrapper class.
*
* Supports storing translation files.
*/
class TranslationsStreamWrapper extends DrupalLocalStreamWrapper {
/**
* Implements abstract public function getDirectoryPath()
*/
public function getDirectoryPath() {
return variable_get('l10n_update_download_store', L10N_UPDATE_DEFAULT_TRANSLATION_PATH);
}
/**
* Overrides getExternalUrl().
*/
function getExternalUrl() {
throw new Exception('PO files URL should not be public.');
}
}
|