Changeset 10378 for trunk/admin/lang_file.php
- Timestamp:
- 05/01/09 01:18:36 (3 years ago)
- File:
-
- 1 edited
-
trunk/admin/lang_file.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/lang_file.php
r9974 r10378 433 433 { 434 434 db_res("INSERT INTO `sys_localization_categories` (`Name`) VALUES ('$newCategoryName')"); 435 $categoryID = mysql_insert_id();435 $categoryID = db_last_id(); 436 436 437 437 if ( !$categoryID ) … … 451 451 } else { 452 452 db_res("INSERT INTO `sys_localization_keys` (`IDCategory`, `Key`) VALUES ({$categoryID}, '{$newKeyName}')", 0); 453 $newKeyID = mysql_insert_id();453 $newKeyID = db_last_id(); 454 454 } 455 455 … … 475 475 ); 476 476 477 if( ! mysql_affected_rows() )477 if( !db_affected_rows() ) 478 478 return '<font color="red">Could not insert a string parameter.</font>'; 479 479 } … … 504 504 VALUES ({$newKeyID}, {$langKey}, '{$langString}') 505 505 "); 506 if ( mysql_affected_rows() <= 0) return '<font color="red">Error: could not add a language string.</font>';506 if (db_affected_rows() <= 0) return '<font color="red">Error: could not add a language string.</font>'; 507 507 } 508 508 } … … 649 649 `IDLanguage` = $langID"); 650 650 651 if ( mysql_affected_rows() <= 0)651 if (db_affected_rows() <= 0) 652 652 { 653 653 return '<font color="red">The string has <b>NOT</b> been updated.</font>'; … … 946 946 db_res( $sQuery ); 947 947 948 if ( mysql_affected_rows() )948 if ( db_affected_rows() ) 949 949 return 'Language has been successfully updated.'; 950 950 … … 1012 1012 "); 1013 1013 1014 if( mysql_affected_rows() <= 0) return '<font color="red">Error: could not add a new language to the database.</font>';1015 1016 $newLangID = mysql_insert_id();1014 if(db_affected_rows() <= 0) return '<font color="red">Error: could not add a new language to the database.</font>'; 1015 1016 $newLangID = db_last_id(); 1017 1017 1018 1018 $resSourceLangStrings = db_res(" … … 1031 1031 ", 0); 1032 1032 1033 if( ! mysql_affected_rows() )1033 if( !db_affected_rows() ) 1034 1034 return '<font color="red">Error: could not add a language string to the database.</font>'; 1035 1035 }
Note: See TracChangeset
for help on using the changeset viewer.