mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
d1e79d1afc
|
@ -583,7 +583,7 @@ class SeedDMS_Extension_Mgr {
|
|||
public function updateExtensionList($version='', $force=false) { /* {{{ */
|
||||
if($this->reposurl) {
|
||||
if(!file_exists($this->cachedir."/".self::repos_list_file) || $force) {
|
||||
if($file = @file_get_contents($this->reposurl.($version ? '?seeddms_version='.$version : ''), false, $this->getStreamContext())) {
|
||||
if(false !== ($file = @file_get_contents($this->reposurl.($version ? '?seeddms_version='.$version : ''), false, $this->getStreamContext()))) {
|
||||
if(is_array($http_response_header)) {
|
||||
$parts=explode(' ',$http_response_header[0]);
|
||||
if(count($parts)>1) //HTTP/1.0 <code> <text>
|
||||
|
@ -592,6 +592,10 @@ class SeedDMS_Extension_Mgr {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if(!$file) {
|
||||
$this->errmsgs[] = 'Extension list is empty';
|
||||
return false;
|
||||
}
|
||||
file_put_contents($this->cachedir."/".self::repos_list_file, $file);
|
||||
} else {
|
||||
return false;
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -39,6 +39,7 @@ class SeedDMS_View_AttributeMgr extends SeedDMS_Bootstrap_Style {
|
|||
function js() { /* {{{ */
|
||||
$selattrdef = $this->params['selattrdef'];
|
||||
header('Content-Type: application/javascript');
|
||||
parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder'));
|
||||
?>
|
||||
|
||||
$(document).ready( function() {
|
||||
|
|
|
@ -39,6 +39,7 @@ class SeedDMS_View_Categories extends SeedDMS_Bootstrap_Style {
|
|||
function js() { /* {{{ */
|
||||
$selcat = $this->params['selcategory'];
|
||||
header('Content-Type: application/javascript');
|
||||
parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder'));
|
||||
?>
|
||||
$(document).ready( function() {
|
||||
$( "#selector" ).change(function() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user