// Get its data for template
$networkData = getNetworkDataById(getRequestParameter('network'));
+ // Init type
+ $networkData['network_type_id'] = 0;
+
// Init disabled list
$GLOBALS['network_translation_disabled'] = array();
// Only show from current type handler
$ADD = sprintf(" AND p.`network_type_id`=%s", bigintval(postRequestParameter('network_type_id')));
+ // Overwrite type
+ $networkData['network_type_id'] = bigintval(postRequestParameter('network_type_id'));
+
// Display message
loadTemplate('admin_settings_saved', false, '{--ADMIN_NETWORK_API_TRANSLATION_LIST_LIMITED_TO_TYPE--}');
} // END - if
-
// Load all advert codes for given network
$result = SQL_QUERY_ESC("SELECT
- p.`network_api_id`, t.`network_type_id`, t.`network_type_handle`, p.`network_api_index`
+ p.`network_api_id`, t.`network_type_id`, t.`network_type_handle`, p.`network_api_index`, p.`sort`
FROM
`{?_MYSQL_PREFIX?}_network_api_translation` AS p
INNER JOIN
$OUT = '';
while ($row = SQL_FETCHARRAY($result)) {
// Add it to network if the type matches selected
- if ($row['network_type_id'] == getRequestParameter('network_type_id')) {
+ if ($row['network_type_id'] == postRequestParameter('network_type_id')) {
// Matches, then add it for disabling this entry
$GLOBALS['network_translation_disabled'][$row['network_api_index']] = true;
} // END - if
loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_API_TRANSLATION_404', $networkData['network_title']));
}
- // Add options list for network type
- $networkData['translation_index'] = (SQL_NUMROWS($result) + 1);
-
// Free result
SQL_FREERESULT($result);