Fix appid
parent
840a124b66
commit
447610b260
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace OCA\Documents;
|
namespace OCA\Richdocuments;
|
||||||
|
|
||||||
use \OCA\Documents\AppInfo\Application;
|
use \OCA\Richdocuments\AppInfo\Application;
|
||||||
|
|
||||||
$app = new 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();
|
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('richdocuments', 'Align Left');
|
||||||
t('documents', 'Alignment');
|
t('richdocuments', 'Alignment');
|
||||||
t('documents', 'Align Right');
|
t('richdocuments', 'Align Right');
|
||||||
t('documents', 'Annotate');
|
t('richdocuments', 'Annotate');
|
||||||
t('documents', 'Background');
|
t('richdocuments', 'Background');
|
||||||
t('documents', 'Bold');
|
t('richdocuments', 'Bold');
|
||||||
t('documents', 'Bottom');
|
t('richdocuments', 'Bottom');
|
||||||
t('documents', 'Cancel');
|
t('richdocuments', 'Cancel');
|
||||||
t('documents', 'Center');
|
t('richdocuments', 'Center');
|
||||||
t('documents', 'Clone');
|
t('richdocuments', 'Clone');
|
||||||
t('documents', 'Clone this Style');
|
t('richdocuments', 'Clone this Style');
|
||||||
t('documents', 'Close');
|
t('richdocuments', 'Close');
|
||||||
t('documents', 'Color');
|
t('richdocuments', 'Color');
|
||||||
t('documents', 'Create');
|
t('richdocuments', 'Create');
|
||||||
t('documents', 'Decrease Indent');
|
t('richdocuments', 'Decrease Indent');
|
||||||
t('documents', 'Default Style');
|
t('richdocuments', 'Default Style');
|
||||||
t('documents', 'Delete');
|
t('richdocuments', 'Delete');
|
||||||
t('documents', 'Family');
|
t('richdocuments', 'Family');
|
||||||
t('documents', 'Font');
|
t('richdocuments', 'Font');
|
||||||
t('documents', 'Font Effects');
|
t('richdocuments', 'Font Effects');
|
||||||
t('documents', 'Format');
|
t('richdocuments', 'Format');
|
||||||
t('documents', 'Increase Indent');
|
t('richdocuments', 'Increase Indent');
|
||||||
t('documents', 'Insert Image');
|
t('richdocuments', 'Insert Image');
|
||||||
t('documents', 'Invite Members');
|
t('richdocuments', 'Invite Members');
|
||||||
t('documents', 'Italic');
|
t('richdocuments', 'Italic');
|
||||||
t('documents', 'Justified');
|
t('richdocuments', 'Justified');
|
||||||
t('documents', 'Justify');
|
t('richdocuments', 'Justify');
|
||||||
t('documents', 'Left');
|
t('richdocuments', 'Left');
|
||||||
t('documents', 'Loading');
|
t('richdocuments', 'Loading');
|
||||||
t('documents', 'Members');
|
t('richdocuments', 'Members');
|
||||||
t('documents', 'New Name:');
|
t('richdocuments', 'New Name:');
|
||||||
t('documents', 'OK');
|
t('richdocuments', 'OK');
|
||||||
t('documents', 'Open');
|
t('richdocuments', 'Open');
|
||||||
t('documents', 'Options');
|
t('richdocuments', 'Options');
|
||||||
t('documents', 'Paragraph...');
|
t('richdocuments', 'Paragraph...');
|
||||||
t('documents', 'Paragraph Styles');
|
t('richdocuments', 'Paragraph Styles');
|
||||||
t('documents', 'Redo');
|
t('richdocuments', 'Redo');
|
||||||
t('documents', 'Right');
|
t('richdocuments', 'Right');
|
||||||
t('documents', 'Save');
|
t('richdocuments', 'Save');
|
||||||
t('documents', 'Size');
|
t('richdocuments', 'Size');
|
||||||
t('documents', 'Spacing');
|
t('richdocuments', 'Spacing');
|
||||||
t('documents', 'Strikethrough');
|
t('richdocuments', 'Strikethrough');
|
||||||
t('documents', 'Style');
|
t('richdocuments', 'Style');
|
||||||
t('documents', 'Text');
|
t('richdocuments', 'Text');
|
||||||
t('documents', 'Top');
|
t('richdocuments', 'Top');
|
||||||
t('documents', 'Underline');
|
t('richdocuments', 'Underline');
|
||||||
t('documents', 'Undo');
|
t('richdocuments', 'Undo');
|
||||||
t('documents', 'Unknown Author');
|
t('richdocuments', 'Unknown Author');
|
||||||
|
Loading…
Reference in New Issue