Alexander Nicolaysen =?UTF-8?Q?S=C3=B8rnes=20?=: editAppFamily: Don't call url functions statically
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sun Jan 12 11:48:24 CST 2014
Module: appdb
Branch: master
Commit: 4c87dbe7c4367342b6baff1834bfa52ca95b5c0e
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=4c87dbe7c4367342b6baff1834bfa52ca95b5c0e
Author: Alexander Nicolaysen Sørnes <alexsornes at 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());
}
More information about the wine-cvs
mailing list