summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-04-22 22:20:19 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-04-22 22:20:19 +0000
commit79712cb0b4c73e8bc73f4f694018fb2e6308c935 (patch)
treeeddaabfcc382c6e488aa0c0e55735f160cf10fc3
parent47f531fc9c50cc163ba21646271203a7ace4aba8 (diff)
Remove the negative weighting for albums. The are now positioned
based on the insertion order.
-rw-r--r--core/models/item.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/models/item.php b/core/models/item.php
index afed45f8..b32f6e2c 100644
--- a/core/models/item.php
+++ b/core/models/item.php
@@ -291,10 +291,6 @@ class Item_Model extends ORM_MPTT {
$this->created = $this->updated;
$r = ORM::factory("item")->select("MAX(weight) as max_weight")->find();
$this->weight = $r->max_weight + 1;
- // Let albums have a weight of based on the largest -ve number so they come first.
- if ($this->is_album()) {
- $this->weight = -(0x7FFFFFFF - $this->weight);
- }
}
}
return parent::save();