Skip to content

Commit 062a437

Browse files
author
Derek Jones
committed
Fix database backup link
v4 has a built in backup utility, v3 does not
1 parent 3965927 commit 062a437

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

emoji_support/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ It's always good idea to check with the developer though, as it is possible that
3636

3737
## Change Log
3838

39+
### 1.0.1
40+
41+
- Fixed the link for database backups based on which version of ExpressionEngine is installed
42+
3943
### 1.0.0
4044

4145
- Initial release. Boom!

emoji_support/mcp.emoji_support.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,20 @@ public function index()
8888
return ee('View')->make('emoji_support:alert')->render();
8989
}
9090

91+
if (version_compare(APP_VER, '4.0.0-dp.1', '>='))
92+
{
93+
$url = ee('CP/URL', 'utilities/db-backup');
94+
}
95+
else
96+
{
97+
$url = DOC_URL.'operations/database_backup.html';
98+
}
99+
91100
ee('CP/Alert')->makeInline('backup')
92101
->asWarning()
93102
->cannotClose()
94103
->withTitle(lang('backup'))
95-
->addToBody(sprintf(lang('backup_desc'), ee('CP/URL', 'utilities/db-backup')))
104+
->addToBody(sprintf(lang('backup_desc'), $url))
96105
->now();
97106

98107
$sql = $this->prepareSQLStatements();

0 commit comments

Comments
 (0)