From 091a2e852750eed15e95aec253e3fbd6b8405981 Mon Sep 17 00:00:00 2001 From: justinhunt Date: Mon, 21 Dec 2020 10:32:10 +0900 Subject: [PATCH] renamed mysubscription to account dashboard --- mysubscription.php => accountdashboard.php | 4 ++-- lang/en/filter_poodll.php | 2 +- settings.php | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) rename mysubscription.php => accountdashboard.php (85%) diff --git a/mysubscription.php b/accountdashboard.php similarity index 85% rename from mysubscription.php rename to accountdashboard.php index baaf2f71..896b90c1 100644 --- a/mysubscription.php +++ b/accountdashboard.php @@ -5,7 +5,7 @@ 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); @@ -13,7 +13,7 @@ //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); diff --git a/lang/en/filter_poodll.php b/lang/en/filter_poodll.php index 57e13a72..e7fa76be 100644 --- a/lang/en/filter_poodll.php +++ b/lang/en/filter_poodll.php @@ -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'; diff --git a/settings.php b/settings.php index 67762f3d..2915f5e7 100644 --- a/settings.php +++ b/settings.php @@ -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')); @@ -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');