Skip to content

Commit

Permalink
Update# properly use the app framework
Browse files Browse the repository at this point in the history
  • Loading branch information
pellaeon committed Sep 2, 2015
1 parent b56846d commit 044d22d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions admin.php
Expand Up @@ -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();
4 changes: 2 additions & 2 deletions appinfo/app.php
Expand Up @@ -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')));
Expand Down
4 changes: 2 additions & 2 deletions app/registration.php → appinfo/application.php
Expand Up @@ -9,7 +9,7 @@
* @copyright Pellaeon Lin 2014
*/

namespace OCA\Registration\App;
namespace OCA\Registration\AppInfo;

use \OCP\AppFramework\App;

Expand All @@ -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);
Expand Down

0 comments on commit 044d22d

Please sign in to comment.