From 79712cb0b4c73e8bc73f4f694018fb2e6308c935 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 22 Apr 2009 22:20:19 +0000 Subject: Remove the negative weighting for albums. The are now positioned based on the insertion order. --- core/models/item.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/models') 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(); -- cgit v1.2.3