Permalink
Browse files

Update# properly use the app framework

  • Loading branch information...
pellaeon committed Sep 2, 2015
1 parent b56846d commit 044d22d971e4a4e97ceddcdd18f6a04191233ea3
Showing with 6 additions and 6 deletions.
  1. +2 −2 admin.php
  2. +2 −2 appinfo/app.php
  3. +2 −2 app/registration.php → appinfo/application.php
View
@@ -9,8 +9,8 @@
* @copyright Pellaeon Lin 2015
*/
namespace OCA\Registration\App;
namespace OCA\Registration\AppInfo;
$app = new Registration();
$app = new Application();
$controller = $app->getContainer()->query('SettingsController');
return $controller->displayPanel()->render();
View
@@ -9,9 +9,9 @@
* @copyright Pellaeon Lin 2014
*/
namespace OCA\Registration\App;
namespace OCA\Registration\AppInfo;
$app = new Registration();
$app = new Application();
$c = $app->getContainer();
\OC_App::registerLogIn(array('name' => $c->query('L10N')->t('Register'), 'href' => $c->query('URLGenerator')->linkToRoute('registration.register.askEmail')));
@@ -9,7 +9,7 @@
* @copyright Pellaeon Lin 2014
*/
namespace OCA\Registration\App;
namespace OCA\Registration\AppInfo;
use \OCP\AppFramework\App;
@@ -19,7 +19,7 @@
use \OCA\Registration\Db\PendingRegist;
class Registration extends App {
class Application extends App {
public function __construct (array $urlParams=array()) {
parent::__construct('registration', $urlParams);

0 comments on commit 044d22d

Please sign in to comment.