Module: appdb Branch: master Commit: 4c87dbe7c4367342b6baff1834bfa52ca95b5c0e URL: http://source.winehq.org/git/appdb.git/?a=commit;h=4c87dbe7c4367342b6baff183...
Author: Alexander Nicolaysen Sørnes alexsornes@gmail.com Date: Sun Jan 12 18:48:16 2014 +0100
editAppFamily: Don't call url functions statically
---
admin/editAppFamily.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/admin/editAppFamily.php b/admin/editAppFamily.php index 1908692..6531fb4 100644 --- a/admin/editAppFamily.php +++ b/admin/editAppFamily.php @@ -15,10 +15,12 @@ if(!is_numeric($aClean['iAppId'])) if(!($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isSuperMaintainer($aClean['iAppId']))) util_show_error_page_and_exit("Insufficient Privileges!");
+$oUrl = new Url(); + if(!empty($aClean['sSubmit'])) { process_app_version_changes(false); - url::processForm($aClean); + $oUrl->ProcessForm($aClean); $oApp = new application($aClean['iAppId']); util_redirect_and_exit($oApp->objectMakeUrl()); } @@ -51,7 +53,7 @@ else echo "<p>";
// URL editor - echo url::outputEditor("editAppFamily.php", NULL, $oApp); + echo $oUrl->outputEditor("editAppFamily.php", NULL, $oApp);
echo html_back_link(1,$oApp->objectMakeUrl()); }