rename admin_export -> admin_migrate

remotes/origin/stable4
Tom Needham 2012-04-07 17:23:25 +07:00
parent 23d39f7ef0
commit 00449cdf37
4 changed files with 10 additions and 12 deletions

@ -1,10 +1,8 @@
<?php <?php
/** /**
* ownCloud - user_ldap * ownCloud - admin_migrate
* *
* @author Dominik Schmidt
* @copyright 2011 Dominik Schmidt dev@dominik-schmidt.de
* @author Tom Needham * @author Tom Needham
* @copyright 2012 Tom Needham tom@owncloud.com * @copyright 2012 Tom Needham tom@owncloud.com
* *
@ -24,12 +22,12 @@
*/ */
OC_APP::registerAdmin('admin_export','settings'); OC_APP::registerAdmin('admin_migrate','settings');
// add settings page to navigation // add settings page to navigation
$entry = array( $entry = array(
'id' => "admin_export_settings", 'id' => "admin_migrate_settings",
'order'=>1, 'order'=>1,
'href' => OC_Helper::linkTo( "admin_export", "settings.php" ), 'href' => OC_Helper::linkTo( "admin_migrate", "settings.php" ),
'name' => 'Export' 'name' => 'Export'
); );

@ -1,8 +1,8 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<info> <info>
<id>admin_export</id> <id>admin_migrate</id>
<name>Import/Export</name> <name>ownCloud Instance Migration</name>
<description>Import/Export your owncloud data</description> <description>Import/Export your owncloud instance</description>
<version>0.1</version> <version>0.1</version>
<licence>AGPL</licence> <licence>AGPL</licence>
<author>Thomas Schmidt and Tom Needham</author> <author>Thomas Schmidt and Tom Needham</author>

@ -1,7 +1,7 @@
<?php <?php
/** /**
* ownCloud - admin export * ownCloud - admin_migrate
* *
* @author Thomas Schmidt * @author Thomas Schmidt
* @copyright 2011 Thomas Schmidt tom@opensuse.org * @copyright 2011 Thomas Schmidt tom@opensuse.org
@ -23,7 +23,7 @@
* *
*/ */
OC_Util::checkAdminUser(); OC_Util::checkAdminUser();
OC_Util::checkAppEnabled('admin_export'); OC_Util::checkAppEnabled('admin_migrate');
// Export? // Export?
if (isset($_POST['admin_export'])) { if (isset($_POST['admin_export'])) {
@ -50,6 +50,6 @@ if (isset($_POST['admin_export'])) {
} else { } else {
// fill template // fill template
$tmpl = new OC_Template('admin_export', 'settings'); $tmpl = new OC_Template('admin_migrate', 'settings');
return $tmpl->fetchPage(); return $tmpl->fetchPage();
} }