Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix QuotaComputer deprecated method call.
Browse files Browse the repository at this point in the history
Fix layout chooser not appearing in some cases.
Replace update button icon (use save)
  • Loading branch information
cdujeu committed Nov 13, 2014
1 parent 99e6a72 commit 6e9886e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions core/src/plugins/action.share/class.ShareCenter.js
Expand Up @@ -444,10 +444,10 @@ Class.create("ShareCenter", {
if(json['download_limit']){
oForm.down('input[name="downloadlimit"]').setValue(json['download_limit']);
}
var chooser = this.createTemplateChooser(oForm);
var container = oForm.down('.layout_template_container');
container.insert(chooser);
if(json["minisite_layout"]){
var chooser = this.createTemplateChooser(oForm);
var container = oForm.down('.layout_template_container');
container.insert(chooser);
chooser.setValue(json['minisite_layout']);
}
if(json['is_expired']){
Expand Down Expand Up @@ -1223,7 +1223,7 @@ Class.create("ShareCenter", {
var aSpan = new Element('span', {
className:'',
title:MessageHash['share_center.152']
}).update('<span class="icon-refresh"></span> '+MessageHash['share_center.152']);
}).update('<span class="icon-save"></span> '+MessageHash['share_center.152']);
var editButton = new Element('div', {className:'largeButton'}).update(aSpan);
bottomButtonsContainer.insert(editButton);
bottomButtonsContainer.show();
Expand Down
8 changes: 4 additions & 4 deletions core/src/plugins/meta.quota/class.QuotaComputer.php
Expand Up @@ -164,14 +164,14 @@ public function loadRepositoryInfo(&$data){

public function recomputeQuotaUsage($oldNode = null, $newNode = null, $copy = false)
{
$path = $this->getWorkingPath();
$q = $this->computeDirSpace($path);
$this->storeUsage($path, $q);
$repoOptions = $this->getWorkingRepositoryOptions();
$q = $this->accessDriver->directoryUsage("", $repoOptions);
$this->storeUsage($q);
$t = $this->getAuthorized();
AJXP_Controller::applyHook("msg.instant", array("<metaquota usage='{$q}' total='{$t}'/>", $this->accessDriver->repository->getId()));
}

protected function storeUsage($dir, $quota)
protected function storeUsage($quota)
{
$data = $this->getUserData();
$repo = $this->accessDriver->repository->getId();
Expand Down

0 comments on commit 6e9886e

Please sign in to comment.