summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'themes/mantra/admin/admin-functions.php')
-rw-r--r--themes/mantra/admin/admin-functions.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/themes/mantra/admin/admin-functions.php b/themes/mantra/admin/admin-functions.php
index 937504d3..cf55c809 100644
--- a/themes/mantra/admin/admin-functions.php
+++ b/themes/mantra/admin/admin-functions.php
@@ -39,11 +39,8 @@ function mantra_export_options(){
}
if ( $authorised) {
-global $mantra_options;
-/*date_default_timezone_set('UTC');
-$today = date("YmdGis");
-$name = 'mantra-settings'.$today.'.txt';*/
- $name = 'mantra-settings.txt';
+ global $mantra_options;
+ $name = 'mantrasettings-'.preg_replace("/[^a-z0-9-_]/i",'',str_replace("http://","",get_option('siteurl'))).'-'.date('Ymd-His').'.txt';
$data = $mantra_options;
$data = json_encode( $data );
$size = strlen( $data );