| 1 |
<?php |
<?php |
| 2 |
// $Id: image_pub.common.inc,v 1.16 2008/12/02 22:46:58 egfrith Exp $ |
// $Id: image_pub.common.inc,v 1.1.2.1 2009/01/31 02:00:25 egfrith Exp $ |
| 3 |
|
|
| 4 |
/* |
/* |
| 5 |
* Generalized helper functions for tasks that require tight integration |
* Generalized helper functions for tasks that require tight integration |
| 163 |
} |
} |
| 164 |
|
|
| 165 |
if (empty($caption)) { |
if (empty($caption)) { |
| 166 |
$caption = $_POST['force_filename']; |
$caption = basename($_FILES[$srcfield]['name']); |
| 167 |
if (empty($caption)) { |
if (empty($caption)) { |
| 168 |
$caption = basename($_FILES[$srcfield]['name']); |
$caption = 'Untitled image'; |
|
if (empty($caption)) { |
|
|
$caption = 'Untitled image'; |
|
|
} |
|
| 169 |
} |
} |
| 170 |
} |
} |
| 171 |
|
|