Changeset 7700 for extensions/AMetaData/amd_pip.class.inc.php
- Timestamp:
- Nov 8, 2010, 11:43:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/amd_pip.class.inc.php
r6920 r7700 113 113 'values' => array(), 114 114 ); 115 $sql=" SELECT st.tagId, gn.name as gName, ut.numId, ut.name115 $sql="(SELECT st.tagId, gn.name as gName, ut.numId, ut.name, 'y' AS displayStatus 116 116 FROM ((".$this->tables['selected_tags']." st 117 117 LEFT JOIN ".$this->tables['groups']." gr … … 123 123 WHERE gn.lang='".$user['language']."' 124 124 AND st.groupId <> -1 125 ORDER BY gr.order, st.order;"; 125 ORDER BY gr.order, st.order) 126 127 UNION 128 129 (SELECT DISTINCT ut3.tagId, '', pautd.value, '', 'n' 130 FROM ((".$this->tables['selected_tags']." st2 131 LEFT JOIN ".$this->tables['used_tags']." ut2 ON ut2.tagId = st2.tagId) 132 LEFT JOIN ".$this->tables['user_tags_def']." pautd ON pautd.numId=ut2.numId) 133 LEFT JOIN ".$this->tables['used_tags']." ut3 ON ut3.numId = pautd.value 134 WHERE st2.tagId LIKE 'userDefined.%' 135 AND pautd.type = 'M');"; 136 126 137 $result=pwg_query($sql); 127 138 if($result) … … 172 183 foreach($tagsList as $key => $tagProperties) 173 184 { 174 $keyExist=array_key_exists($key, $picturesTags) ;185 $keyExist=array_key_exists($key, $picturesTags) & ($tagProperties['displayStatus']=='y'); 175 186 $userDefined=preg_match('/^userDefined\./i', $key); 176 187
Note: See TracChangeset
for help on using the changeset viewer.