Make the developer module self contained by moving the test images from the core product into this module.
BIN
modules/developer/data/DSC_0003.jpg
Normal file
After Width: | Height: | Size: 718 KiB |
BIN
modules/developer/data/DSC_0005.jpg
Normal file
After Width: | Height: | Size: 671 KiB |
BIN
modules/developer/data/DSC_0017.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
modules/developer/data/DSC_0019.jpg
Normal file
After Width: | Height: | Size: 634 KiB |
BIN
modules/developer/data/DSC_0067.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
modules/developer/data/DSC_0072.jpg
Normal file
After Width: | Height: | Size: 991 KiB |
BIN
modules/developer/data/P4050088.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
@ -190,7 +190,7 @@ class developer_task_Core {
|
|||||||
$parents = ORM::factory("item")->where("type", "album")->find_all()->as_array();
|
$parents = ORM::factory("item")->where("type", "album")->find_all()->as_array();
|
||||||
$owner_id = user::active()->id;
|
$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 = $parents[array_rand($parents)];
|
||||||
$parent->reload();
|
$parent->reload();
|
||||||
@ -281,7 +281,6 @@ class developer_task_Core {
|
|||||||
return implode(' ', $chosen);
|
return implode(' ', $chosen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static function _generateTags($number=10){
|
private static function _generateTags($number=10){
|
||||||
// Words from lorem2.com
|
// Words from lorem2.com
|
||||||
$words = explode(
|
$words = explode(
|
||||||
|