Skip to content

Commit

Permalink
renamed mysubscription to account dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhunt committed Dec 21, 2020
1 parent 3ccfc74 commit 091a2e8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions mysubscription.php → accountdashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
require_once("../../config.php");
require_once($CFG->libdir . '/adminlib.php');

admin_externalpage_setup('mysubscription');
admin_externalpage_setup('accountdashboard');

//detect if its a CSV or not
$exportcsv = optional_param('csv', 0, PARAM_INT);


//if we are exporting html, do that
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('mysubscription', 'filter_poodll'), 3);
echo $OUTPUT->heading(get_string('accountdashboard', 'filter_poodll'), 3);

$params=[];
$result = \filter_poodll\poodlltools::call_cloudpoodll('local_cpapi_fetch_user_report',$params);
Expand Down
2 changes: 1 addition & 1 deletion lang/en/filter_poodll.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
$string['awssdkauto'] = 'Auto select AWS SDK';

//My subscription page
$string['mysubscription'] = 'My Subscription';
$string['accountdashboard'] = 'Account Dashboard';
$string['subscription'] = 'Subscription';
$string['start'] = 'Start';
$string['end'] = 'Expiration';
Expand Down
10 changes: 5 additions & 5 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@

$ADMIN->add($poodll_category_name, $diagnostics_settings);

///my subscription
$mysubscription_settings = new admin_externalpage('mysubscription', get_string('mysubscription', 'filter_poodll'),
$CFG->wwwroot . '/filter/poodll/mysubscription.php');

$ADMIN->add($poodll_category_name, $mysubscription_settings);

//Mobile app Settings
$mobile_settings = new admin_settingpage('filter_poodll_mobile', get_string('mobilesettings', 'filter_poodll'));
Expand All @@ -83,6 +78,11 @@
}
$ADMIN->add($poodll_category_name, $widget_settings);

// Account Dashboard
$accountdashboard_settings = new admin_externalpage('accountdashboard', get_string('accountdashboard', 'filter_poodll'),
$CFG->wwwroot . '/filter/poodll/accountdashboard.php');
$ADMIN->add($poodll_category_name, $accountdashboard_settings);

$poodlltemplatesadmin_settings = new admin_externalpage('poodlltemplatesadmin', get_string('templates', 'filter_poodll'),
$CFG->wwwroot . '/filter/poodll/poodlltemplatesadmin.php');

Expand Down

0 comments on commit 091a2e8

Please sign in to comment.