Fix appid
부모
840a124b66
커밋
447610b260
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\Documents;
|
||||
namespace OCA\Richdocuments;
|
||||
|
||||
use \OCA\Documents\AppInfo\Application;
|
||||
use \OCA\Richdocuments\AppInfo\Application;
|
||||
|
||||
$app = new Application();
|
||||
$response = $app->getContainer()->query('\OCA\Documents\Controller\SettingsController')->adminIndex();
|
||||
$response = $app->getContainer()->query('\OCA\Richdocuments\Controller\SettingsController')->adminIndex();
|
||||
return $response->render();
|
||||
|
||||
|
@ -1,51 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* ownCloud - Documents App
|
||||
*
|
||||
* @author Victor Dubiniuk
|
||||
* @copyright 2013 Victor Dubiniuk victor.dubiniuk@gmail.com
|
||||
*
|
||||
* This file is licensed under the Affero General Public License version 3 or
|
||||
* later.
|
||||
*/
|
||||
|
||||
$config = \OC::$server->getConfig();
|
||||
$dbConnection = \OC::$server->getDatabaseConnection();
|
||||
$installedVersion = $config->getAppValue('documents', 'installed_version');
|
||||
|
||||
$cleanup = $dbConnection->prepare('DELETE FROM `*PREFIX*documents_member` WHERE `last_activity`=0 or `last_activity` is NULL');
|
||||
$cleanup->execute();
|
||||
|
||||
if (version_compare($installedVersion, '0.7', '<=')) {
|
||||
$config->setAppValue('documents', 'unstable', 'false');
|
||||
$session = new \OCA\Documents\Db\Session();
|
||||
|
||||
$query = $dbConnection->prepare('UPDATE `*PREFIX*documents_session` SET `genesis_url`=? WHERE `es_id`=?');
|
||||
|
||||
foreach ($session->getCollection() as $sessionData){
|
||||
$sessionData['genesis_url'] = \OCA\Documents\Genesis::DOCUMENTS_DIRNAME . $sessionData['genesis_url'];
|
||||
$query->execute(array(
|
||||
$sessionData['genesis_url'],
|
||||
$sessionData['es_id']
|
||||
));
|
||||
|
||||
}
|
||||
}
|
||||
if (version_compare($installedVersion, '0.8', '<')) {
|
||||
$query = $dbConnection->prepare('UPDATE `*PREFIX*documents_member` SET `is_guest`=1 WHERE `uid` LIKE \'%(guest)\' ');
|
||||
$query->execute(array());
|
||||
}
|
||||
|
||||
if (version_compare($installedVersion, '0.9', '<')) {
|
||||
$query = $dbConnection->prepare('UPDATE `*PREFIX*documents_op` SET `optype`=? WHERE `seq`=?');
|
||||
$ops = new \OCA\Documents\Db\Op();
|
||||
foreach ($ops->getCollection() as $opData){
|
||||
$opSpec = json_decode($opData['opspec'], true);
|
||||
$query->execute(
|
||||
array(
|
||||
$opSpec['optype'],
|
||||
$opData['seq']
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
@ -1,48 +1,48 @@
|
||||
t('documents', 'Align Left');
|
||||
t('documents', 'Alignment');
|
||||
t('documents', 'Align Right');
|
||||
t('documents', 'Annotate');
|
||||
t('documents', 'Background');
|
||||
t('documents', 'Bold');
|
||||
t('documents', 'Bottom');
|
||||
t('documents', 'Cancel');
|
||||
t('documents', 'Center');
|
||||
t('documents', 'Clone');
|
||||
t('documents', 'Clone this Style');
|
||||
t('documents', 'Close');
|
||||
t('documents', 'Color');
|
||||
t('documents', 'Create');
|
||||
t('documents', 'Decrease Indent');
|
||||
t('documents', 'Default Style');
|
||||
t('documents', 'Delete');
|
||||
t('documents', 'Family');
|
||||
t('documents', 'Font');
|
||||
t('documents', 'Font Effects');
|
||||
t('documents', 'Format');
|
||||
t('documents', 'Increase Indent');
|
||||
t('documents', 'Insert Image');
|
||||
t('documents', 'Invite Members');
|
||||
t('documents', 'Italic');
|
||||
t('documents', 'Justified');
|
||||
t('documents', 'Justify');
|
||||
t('documents', 'Left');
|
||||
t('documents', 'Loading');
|
||||
t('documents', 'Members');
|
||||
t('documents', 'New Name:');
|
||||
t('documents', 'OK');
|
||||
t('documents', 'Open');
|
||||
t('documents', 'Options');
|
||||
t('documents', 'Paragraph...');
|
||||
t('documents', 'Paragraph Styles');
|
||||
t('documents', 'Redo');
|
||||
t('documents', 'Right');
|
||||
t('documents', 'Save');
|
||||
t('documents', 'Size');
|
||||
t('documents', 'Spacing');
|
||||
t('documents', 'Strikethrough');
|
||||
t('documents', 'Style');
|
||||
t('documents', 'Text');
|
||||
t('documents', 'Top');
|
||||
t('documents', 'Underline');
|
||||
t('documents', 'Undo');
|
||||
t('documents', 'Unknown Author');
|
||||
t('richdocuments', 'Align Left');
|
||||
t('richdocuments', 'Alignment');
|
||||
t('richdocuments', 'Align Right');
|
||||
t('richdocuments', 'Annotate');
|
||||
t('richdocuments', 'Background');
|
||||
t('richdocuments', 'Bold');
|
||||
t('richdocuments', 'Bottom');
|
||||
t('richdocuments', 'Cancel');
|
||||
t('richdocuments', 'Center');
|
||||
t('richdocuments', 'Clone');
|
||||
t('richdocuments', 'Clone this Style');
|
||||
t('richdocuments', 'Close');
|
||||
t('richdocuments', 'Color');
|
||||
t('richdocuments', 'Create');
|
||||
t('richdocuments', 'Decrease Indent');
|
||||
t('richdocuments', 'Default Style');
|
||||
t('richdocuments', 'Delete');
|
||||
t('richdocuments', 'Family');
|
||||
t('richdocuments', 'Font');
|
||||
t('richdocuments', 'Font Effects');
|
||||
t('richdocuments', 'Format');
|
||||
t('richdocuments', 'Increase Indent');
|
||||
t('richdocuments', 'Insert Image');
|
||||
t('richdocuments', 'Invite Members');
|
||||
t('richdocuments', 'Italic');
|
||||
t('richdocuments', 'Justified');
|
||||
t('richdocuments', 'Justify');
|
||||
t('richdocuments', 'Left');
|
||||
t('richdocuments', 'Loading');
|
||||
t('richdocuments', 'Members');
|
||||
t('richdocuments', 'New Name:');
|
||||
t('richdocuments', 'OK');
|
||||
t('richdocuments', 'Open');
|
||||
t('richdocuments', 'Options');
|
||||
t('richdocuments', 'Paragraph...');
|
||||
t('richdocuments', 'Paragraph Styles');
|
||||
t('richdocuments', 'Redo');
|
||||
t('richdocuments', 'Right');
|
||||
t('richdocuments', 'Save');
|
||||
t('richdocuments', 'Size');
|
||||
t('richdocuments', 'Spacing');
|
||||
t('richdocuments', 'Strikethrough');
|
||||
t('richdocuments', 'Style');
|
||||
t('richdocuments', 'Text');
|
||||
t('richdocuments', 'Top');
|
||||
t('richdocuments', 'Underline');
|
||||
t('richdocuments', 'Undo');
|
||||
t('richdocuments', 'Unknown Author');
|
||||
|
불러오는 중...
Reference in New Issue