Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions languages/en.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$english = array(
return array(
'admin:backup' => 'Backup',
'admin:backup:database' => 'Database backup',
'db_backup:cli' => 'CLI tools',
Expand All @@ -18,4 +18,4 @@
'db_backup:backup_file:group:uploaded' => 'Uploaded backup files',
'db_backup:backup_file:no_files' => 'No backup files found',
);
add_translation('en', $english);

4 changes: 2 additions & 2 deletions languages/fr.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$french = array(
return array(
'admin:backup' => "Backup",
'admin:backup:database' => "Backup de la base de données",
'db_backup:cli' => "Outils CLI",
Expand All @@ -15,4 +15,4 @@
'db_backup:action:restore:ok' => "La base de données a bien été restaurée à partir du fichier : %s",
'db_backup:action:restore:fail' => "Une erreur s'est produite lors de la restauration de la base de données. Erreur : %d: %s",
);
add_translation('fr', $french);

6 changes: 5 additions & 1 deletion manifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8">
<name>Database Backups</name>
<id>db_backup</id>
<author>Paweł Sroka</author>
<version>1.2</version>
<category>admin</category>
Expand All @@ -22,6 +23,9 @@

<requires>
<type>elgg_release</type>
<version>1.8</version>
<version>1.12</version>
</requires>

<activate_on_install>false</activate_on_install>

</plugin_manifest>
1 change: 1 addition & 0 deletions start.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<?php
elgg_register_event_handler('init', 'system', array('db_backup', 'init'));

4 changes: 2 additions & 2 deletions views/default/input/select_optgroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
unset($vars['optgroups']);

if (!$optgroups) {
echo elgg_view('input/dropdown', $vars);
echo elgg_view('input/select', $vars);
} else {

$options_values = $vars['options_values'];
Expand Down Expand Up @@ -82,4 +82,4 @@
?>
</select>
<?php
}
}