mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#1306)
* Minor improvements * Update functions.php * Updated * Updated * Update edit_user_profile.php * Update index_data.php * Update * Update sitemap.php
This commit is contained in:
parent
7d32944d36
commit
36e52d5d3b
13 changed files with 67 additions and 64 deletions
|
@ -13,9 +13,11 @@ if (!defined('IN_AJAX')) {
|
|||
|
||||
global $bb_cfg, $lang, $userdata, $datastore;
|
||||
|
||||
$mode = (string)$this->request['mode'];
|
||||
$html = '';
|
||||
if (!$mode = (string)$this->request['mode']) {
|
||||
$this->ajax_die('invalid mode (empty)');
|
||||
}
|
||||
|
||||
$html = '';
|
||||
switch ($mode) {
|
||||
case 'birthday_week':
|
||||
$stats = $datastore->get('stats');
|
||||
|
@ -122,7 +124,7 @@ switch ($mode) {
|
|||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode');
|
||||
$this->ajax_die('Invalid mode: ' . $mode);
|
||||
}
|
||||
|
||||
$this->response['html'] = $html;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue