]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admin_add.php
Some language strings rewritten to use getMessage()
[mailer.git] / inc / modules / admin / what-admin_add.php
index 3bb45b511fb9d34631daad763e20755fbb7eebb3..d99ec7e6784cba4f56c7a6132519071cf947a289 100644 (file)
@@ -46,11 +46,11 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 ADD_DESCR('admin', __FILE__);
 
 // Check if the admin has entered title and what-php file name...
-if (((!REQUEST_ISSET_POST(('title'))) || (!REQUEST_ISSET_POST(('menu'))) || (!REQUEST_ISSET_POST(('descr')))) && (IS_FORM_SENT())) {
+if (((!REQUEST_ISSET_POST('title')) || (!REQUEST_ISSET_POST(('menu'))) || (!REQUEST_ISSET_POST(('descr')))) && (isFormSent())) {
        REQUEST_UNSET_POST('ok');
-}
+} // END - if
 
-if (!IS_FORM_SENT())
+if (!isFormSent())
 {
        // Create arrays
        $menus = array(); $titles = array(); $below = array();
@@ -59,6 +59,7 @@ if (!IS_FORM_SENT())
        $result = SQL_QUERY("SELECT action, title, sort FROM `{!_MYSQL_PREFIX!}_admin_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort`", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // Read menu structure
+               // @TODO Cant this be rewritten?
                while ($content = SQL_FETCHARRAY($result)) {
                        // Menu actions
                        $menus[] = $content['action'];
@@ -156,8 +157,8 @@ if (!IS_FORM_SENT())
        $OUT .= "</select>";
 
        define('__BELOW_SELECTION' , $OUT);
-       define('__WHAT_SELECTION'  , ADMIN_MAKE_MENU_SELECTION('admin', "what", "name"));
-       define('__ACTION_SELECTION', ADMIN_MAKE_MENU_SELECTION('admin', "action", "menu"));
+       define('__WHAT_SELECTION'  , ADMIN_MAKE_MENU_SELECTION('admin', 'what', "name"));
+       define('__ACTION_SELECTION', ADMIN_MAKE_MENU_SELECTION('admin', 'action', "menu"));
 
        // Display form
        LOAD_TEMPLATE("admin_admin_add");