Changeset 25019 for trunk/include/ws_functions.inc.php
- Timestamp:
- Oct 19, 2013, 8:17:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions.inc.php
r25018 r25019 406 406 if (count($datas)) 407 407 { 408 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 409 mass_inserts(CADDIE_TABLE, array('element_id','user_id'), $datas); 408 mass_inserts( 409 CADDIE_TABLE, 410 array('element_id','user_id'), 411 $datas 412 ); 410 413 } 411 414 return count($datas); … … 1727 1730 if ($params['image_id'] > 0) 1728 1731 { 1729 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');1730 1731 1732 $query=' 1732 1733 SELECT * … … 1885 1886 if ($params['image_id'] > 0) 1886 1887 { 1887 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');1888 1889 1888 $query=' 1890 1889 SELECT * … … 1936 1935 { 1937 1936 $update['id'] = $image_id; 1938 1937 1938 single_update( 1939 IMAGES_TABLE, 1940 $update, 1941 array('id', $update['id']) 1942 ); 1943 } 1944 1945 1946 if (isset($params['tags']) and !empty($params['tags'])) 1947 { 1939 1948 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 1940 mass_updates( 1941 IMAGES_TABLE, 1942 array( 1943 'primary' => array('id'), 1944 'update' => array_diff(array_keys($update), array('id')) 1945 ), 1946 array($update) 1947 ); 1948 } 1949 1950 1951 if (isset($params['tags']) and !empty($params['tags'])) 1952 { 1949 1953 1950 $tag_ids = array(); 1954 1951 if (is_array($params['tags'])) … … 2565 2562 $update['id'] = $params['image_id']; 2566 2563 2567 mass_updates(2564 single_update( 2568 2565 IMAGES_TABLE, 2569 array( 2570 'primary' => array('id'), 2571 'update' => array_diff(array_keys($update), array('id')) 2572 ), 2573 array($update) 2566 $update, 2567 array('id', $update['id']) 2574 2568 ); 2575 2569 } … … 2806 2800 } 2807 2801 2808 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');2809 2802 mass_inserts( 2810 2803 IMAGE_CATEGORY_TABLE, … … 2813 2806 ); 2814 2807 2808 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 2815 2809 update_category($new_cat_ids); 2816 2810 } … … 2861 2855 if ($perform_update) 2862 2856 { 2863 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 2864 mass_updates( 2857 single_update( 2865 2858 CATEGORIES_TABLE, 2866 array( 2867 'primary' => array('id'), 2868 'update' => array_diff(array_keys($update), array('id')) 2869 ), 2870 array($update) 2859 $update, 2860 array('id', $update['id']) 2871 2861 ); 2872 2862 } 2873 2874 2863 } 2875 2864
Note: See TracChangeset
for help on using the changeset viewer.