Changeset 4092 for extensions/event_cats/admin/autolog_entries.inc.php
- Timestamp:
- Oct 23, 2009, 1:48:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/autolog_entries.inc.php
r4011 r4092 88 88 switch ($ec_entry['action']) { 89 89 90 case 'ec_ok_f_pb' :91 case 'ec_ok_f_pb_img_pb' :92 $page['errors'][$ec_entry['code']] =93 $ec_entry['code'].' : '.l10n('ec_forced_pb');94 90 case 'ec_ok' : 95 91 case 'ec_ok_img_pb' : … … 103 99 case 1: // Category 104 100 case 3: // Image 105 $url_end = ( 106 $ec_entry['forced'] == 'true' and 107 !is_in($ec_entry['action'], '_f_pb') 108 ) ? '' : '&cat='.$arg1; 101 $url_end = ($ec_entry['forced'] == 'true') ? '' : '&cat='.$arg1; 109 102 $dspl = 110 103 l10n('ec_dspl_ok_cat_pre'). … … 148 141 break; 149 142 case 2: // Additional Page 150 $url_end = ( 151 $ec_entry['forced'] == 'true' and 152 !is_in($ec_entry['action'], '_f_pb') 153 ) ? '' : '&ap='.$arg2; 143 $url_end = ($ec_entry['forced'] == 'true') ? '' : '&ap='.$arg2; 154 144 $dspl = ($ec_ap_ok) ? 155 145 l10n('ec_dspl_ok_ap_pre'). … … 182 172 break; 183 173 184 case 'ec_ok_f_pb_ap_pb' :185 $page['errors'][$ec_entry['code']] =186 $ec_entry['code'].' : '.l10n('ec_forced_pb');187 174 case 'ec_nok_ap_pb' : // No need to check here if Additional Pages is 188 175 case 'ec_ok_ap_pb' : // active : we can arrive here only when it is. … … 190 177 $ec_entry['code'].' : '.l10n('ec_add_page_miss'); 191 178 if (is_in($ec_entry['action'], 'ec_ok')) { 192 $url_end = ( 193 $ec_entry['forced'] == 'true' and 194 !is_in($ec_entry['action'], '_f_pb') 195 ) ? '' : '&ap='.$arg2; 179 $url_end = ($ec_entry['forced'] == 'true') ? '' : '&ap='.$arg2; 196 180 $dspl = l10n('ec_dspl_ok_home'); 197 181 } … … 208 192 break; 209 193 210 case 'ec_ok_f_pb_cat_pb' :211 $page['errors'][$ec_entry['code']] =212 $ec_entry['code'].' : '.l10n('ec_forced_pb');213 194 case 'ec_ok_cat_pb' : 214 $url_end = ( 215 $ec_entry['forced'] == 'true' and 216 !is_in($ec_entry['action'], '_f_pb') 217 ) ? '' : '&cat='.$arg1; 195 $url_end = ($ec_entry['forced'] == 'true') ? '' : '&cat='.$arg1; 218 196 $page['errors'][] = 219 197 $ec_entry['code'].' : '.l10n('ec_category_miss'); … … 283 261 'code_URL' => $code_URL, 284 262 'log_OK' => $log_OK, 285 'f_pb' => is_in($ec_entry['action'], '_f_pb'),286 263 ); 287 264 }
Note: See TracChangeset
for help on using the changeset viewer.