Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git] / manufacturing / work_order_release.php
index 55f2e1ff5d63593dc18d0d5ac0a12dda3e6d230d..eee4ed95d1ed96e49e5777404b0ed552cedad289 100644 (file)
@@ -9,8 +9,8 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 10;
-$path_to_root="..";
+$page_security = 'SA_MANUFRELEASE';
+$path_to_root = "..";
 include_once($path_to_root . "/includes/session.inc");
 
 include_once($path_to_root . "/includes/date_functions.inc");
@@ -69,7 +69,7 @@ if (isset($_POST['release']))
 
        display_notification(_("The work order has been released to manufacturing."));
 
-    display_note(get_trans_view_str(systypes::work_order(), $selected_id, _("View this Work Order")));
+    display_note(get_trans_view_str(ST_WORKORDER, $selected_id, _("View this Work Order")));
 
        hyperlink_no_params("search_work_orders.php", _("Select another &work order"));