projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
859592d
)
Pman/Images.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 27 Oct 2010 07:26:50 +0000
(15:26 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 27 Oct 2010 07:26:50 +0000
(15:26 +0800)
Pman/Images.php
patch
|
blob
|
history
diff --git
a/Pman/Images.php
b/Pman/Images.php
index
0cd33c7
..
4833c68
100644
(file)
--- a/
Pman/Images.php
+++ b/
Pman/Images.php
@@
-73,6
+73,10
@@
class Pman_Images extends Pman
$img = DB_DataObjecT::factory('Images');
$img->ontable = $onbits[0];
$img->onid = $onbits[1];
+ if (empty($_REQUEST['anytype'])) {
+ $img->whereAdd("mimetype like 'image/%'");
+ }
+
if (isset($onbits[2])) {
$img->imgtype = $onbits[2];
}