A lot naming conventions applied, TODOs.txt updated
[mailer.git] / inc / modules / admin / what-config_points.php
index 4126c7efa9f9a23e0d53f8783d040342288744a0..8f6056b541beee2744218db9318b15fce5bddead 100644 (file)
@@ -97,7 +97,7 @@ if (isFormSent()) {
                                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refdepths` SET `level`=%s, `percents`=%s WHERE `id`=%s LIMIT 1",
                                                        array(bigintval($value), convertCommaToDot(postRequestParameter('percents', $id)), $id), __FILE__, __LINE__);
                                        }
-                                       $message = '{--REF_DEPTHS_SAVED--}';
+                                       $message = '{--ADMIN_REFERAL_DEPTHS_SAVED--}';
                                        break;
 
                                case 'del':
@@ -105,7 +105,7 @@ if (isFormSent()) {
                                                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
                                                array(bigintval($id)), __FILE__, __LINE__);
                                        }
-                                       $message = '{--REF_DEPTHS_DELETED--}';
+                                       $message = '{--ADMIN_REFERAL_DEPTHS_DELETED--}';
                                        break;
                        }
 
@@ -195,11 +195,11 @@ WHERE
                        SQL_FREERESULT($result);
 
                        // Load row template and switch color
-                       $OUT .= loadTemplate('admin_points_del_row', true, $content);
+                       $OUT .= loadTemplate('admin_del_points_row', true, $content);
                } // END - foreach
 
                // Load main template
-               loadTemplate('admin_points_del', false, $OUT);
+               loadTemplate('admin_del_points', false, $OUT);
        } elseif ((isFormSent('edit')) && (isPostRequestParameterSet('sel')) && (ifPostContainsSelections())) {
                // Edit entries
                $OUT = '';
@@ -210,11 +210,11 @@ WHERE
                        SQL_FREERESULT($result);
 
                        // Load row template and switch color
-                       $OUT .= loadTemplate('admin_points_edit_row', true, $content);
+                       $OUT .= loadTemplate('admin_edit_points_row', true, $content);
                } // END - foreach
 
                // Load main template
-               loadTemplate('admin_points_edit', false, $OUT);
+               loadTemplate('admin_edit_points', false, $OUT);
        } else {
                // Referal levels
                $result = SQL_QUERY("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);