* @category Applications
* @package StatusNet
* @author Zach Copley <zach@status.net>
- * @copyright 2008-2009 StatusNet, Inc.
+ * @copyright 2008-2011 StatusNet, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-class EditApplicationAction extends OwnerDesignAction
+class EditApplicationAction extends Action
{
var $msg = null;
var $owner = null;
$id = (int)$this->arg('id');
- $this->app = Oauth_application::staticGet($id);
- $this->owner = User::staticGet($this->app->owner);
+ $this->app = Oauth_application::getKV($id);
+ $this->owner = User::getKV($this->app->owner);
$cur = common_current_user();
if ($cur->id != $this->owner->id) {
*/
function nameExists($name)
{
- $newapp = Oauth_application::staticGet('name', $name);
+ $newapp = Oauth_application::getKV('name', $name);
if (empty($newapp)) {
return false;
} else {