1
0

Make the developer module self contained by moving the test images from the core product into this module.

This commit is contained in:
Tim Almdal 2009-05-31 00:22:40 -07:00
parent 1120b87a9f
commit 1f2257cd3a
8 changed files with 1 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 991 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -190,7 +190,7 @@ class developer_task_Core {
$parents = ORM::factory("item")->where("type", "album")->find_all()->as_array();
$owner_id = user::active()->id;
$test_images = glob(APPPATH . "tests/images/*.[Jj][Pp][Gg]");
$test_images = glob(dirname(dirname(__FILE__)) . "/data/*.[Jj][Pp][Gg]");
$parent = $parents[array_rand($parents)];
$parent->reload();
@ -281,7 +281,6 @@ class developer_task_Core {
return implode(' ', $chosen);
}
private static function _generateTags($number=10){
// Words from lorem2.com
$words = explode(