Clean up API to be organized around the functionality it provides, not the feature its provided for.

This commit is contained in:
Bharat Mediratta
2009-05-02 19:11:22 +00:00
parent d0b8fbef1d
commit 486517fac5
2 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class organize_task_Core {
$parent->thumb_height = $item->thumb_height;
$parent->save();
}
list ($height, $width) = $item->adjust_thumb_size(90);
list ($height, $width) = $item->scale_dimensions(90);
$margin_top = (90 - $height) / 20;
return array("src" => $item->thumb_url() . "?rnd=" . rand(),