@@ 116-124 (lines=9) @@ | ||
113 | ||
114 | // check for any project images and associate them with the project |
|
115 | $max_num_images = 4; |
|
116 | for ($i = 1; $i <= $max_num_images; $i++) { |
|
117 | if (!array_key_exists("image_$i", $_FILES)) { |
|
118 | continue; |
|
119 | } |
|
120 | ||
121 | $desc = get_input("image_{$i}_desc"); |
|
122 | ||
123 | $plugin_project->saveImage("image_$i", $desc, $i); |
|
124 | } |
|
125 | ||
126 | elgg_create_river_item(array( |
|
127 | 'view' => 'river/object/plugin_project/create', |
@@ 66-74 (lines=9) @@ | ||
63 | if ($result) { |
|
64 | // check for any project images and associate them with the project |
|
65 | $max_num_images = 4; |
|
66 | for ($i=1; $i<=$max_num_images; $i++) { |
|
67 | if (!array_key_exists("image_$i", $_FILES)) { |
|
68 | continue; |
|
69 | } |
|
70 | ||
71 | $desc = get_input("image_{$i}_desc"); |
|
72 | ||
73 | $plugin_project->saveImage("image_$i", $desc, $i); |
|
74 | } |
|
75 | ||
76 | system_message(elgg_echo("plugins:project:saved")); |
|
77 |