Changeset 1880
- Timestamp:
- Mar 8, 2007, 2:55:49 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/plugins.php
r1852 r1880 90 90 { 91 91 array_push($errors, 'CANNOT '. $_GET['action'] .' - NOT INSTALLED'); 92 break; 92 93 } 93 94 if ($crt_db_plugin['state']!='inactive') 94 95 { 95 96 array_push($errors, 'invalid current state '.$crt_db_plugin['state']); 97 break; 96 98 } 97 99 if ( file_exists($file_to_include) ) -
trunk/include/category_cats.inc.php
r1876 r1880 178 178 update_cats_with_filtered_data($categories); 179 179 } 180 trigger_action('loc_begin_index_categor ies');180 trigger_action('loc_begin_index_category_thumbnails', $categories); 181 181 if ($conf['subcatify']) 182 182 { … … 222 222 ) 223 223 ); 224 225 //plugins need to add/modify sth in this loop ? 226 trigger_action('loc_index_category_thumbnail', 227 $category, 'categories.category' ); 224 228 } 225 229 … … 253 257 $category['count_categories'], 254 258 true, 255 ' <BR>'259 '; ' 256 260 ), 257 261 … … 285 289 ); 286 290 291 //plugins need to add/modify sth in this loop ? 292 trigger_action('loc_index_category_thumbnail', 293 $category, 'thumbnails.line.thumbnail' ); 294 287 295 // create a new line ? 288 296 if (++$row_number == $user['nb_image_line']) … … 301 309 unset( $template->_tpldata['thumbnails.'] );//maybe write a func for that 302 310 } 311 trigger_action('loc_end_index_category_thumbnails', $categories); 303 312 } 304 313 ?> -
trunk/include/functions.inc.php
r1868 r1880 414 414 global $conf, $user, $page; 415 415 416 $do_log = true; 416 417 if (!$conf['log']) 417 418 { 418 return false; 419 } 420 419 $do_log = false; 420 } 421 421 if (is_admin() and !$conf['history_admin']) 422 422 { 423 return false; 424 } 425 423 $do_log = false; 424 } 426 425 if ($user['is_the_guest'] and !$conf['history_guest']) 426 { 427 $do_log = false; 428 } 429 430 $do_log = trigger_event('pwg_log_allowed', $do_log, $image_id, $image_type); 431 432 if (!$do_log) 427 433 { 428 434 return false; -
trunk/include/section_init.inc.php
r1876 r1880 299 299 break; 300 300 } 301 default: 302 trigger_error('script_basename "'.script_basename().'" unknown', 303 E_USER_WARNING); 301 304 } 302 305 } -
trunk/include/ws_functions.inc.php
r1866 r1880 376 376 } 377 377 } 378 foreach ( array(' name', 'file') as $k )378 foreach ( array('file', 'name', 'comment') as $k ) 379 379 { 380 380 $image[$k] = $row[$k]; … … 830 830 } 831 831 } 832 foreach ( array(' name', 'file') as $k )832 foreach ( array('file', 'name', 'comment') as $k ) 833 833 { 834 834 $image[$k] = $row[$k]; … … 1036 1036 } 1037 1037 } 1038 foreach ( array(' name', 'file') as $k )1038 foreach ( array('file', 'name', 'comment') as $k ) 1039 1039 { 1040 1040 $image[$k] = $row[$k];
Note: See TracChangeset
for help on using the changeset viewer.