Merge branch '1.11.x' of https://github.com/chamilo/chamilo-lms into socialTest
commit
a3e86a2ad7
@ -0,0 +1,46 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Application\Migrations\Schema\V111; |
||||
|
||||
use Application\Migrations\AbstractMigrationChamilo; |
||||
use Doctrine\DBAL\Schema\Schema; |
||||
use Doctrine\DBAL\Types\Type; |
||||
|
||||
/** |
||||
* Class Version20160603113100 |
||||
* Add association mapping for Language class |
||||
* @package Application\Migrations\Schema\V111 |
||||
*/ |
||||
class Version20160603113100 extends AbstractMigrationChamilo |
||||
{ |
||||
/** |
||||
* @param Schema $schema |
||||
* @throws \Doctrine\DBAL\DBALException |
||||
* @throws \Doctrine\DBAL\Schema\SchemaException |
||||
*/ |
||||
public function up(Schema $schema) |
||||
{ |
||||
$languageTable = $schema->getTable('language'); |
||||
$languageTable |
||||
->getColumn('parent_id') |
||||
->setType(Type::getType(Type::INTEGER)) |
||||
->setNotnull(false); |
||||
$languageTable->addForeignKeyConstraint('language', ['parent_id'], ['id'], [], 'language_parent'); |
||||
} |
||||
|
||||
/** |
||||
* @param Schema $schema |
||||
* @throws \Doctrine\DBAL\DBALException |
||||
* @throws \Doctrine\DBAL\Schema\SchemaException |
||||
*/ |
||||
public function down(Schema $schema) |
||||
{ |
||||
$languageTable = $schema->getTable('language'); |
||||
$languageTable->removeForeignKey('language_parent'); |
||||
$languageTable |
||||
->getColumn('parent_id') |
||||
->setType(Type::getType(Type::BOOLEAN)) |
||||
->setNotnull(false); |
||||
} |
||||
} |
@ -0,0 +1,92 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Application\Migrations\Schema\V111; |
||||
|
||||
use Application\Migrations\AbstractMigrationChamilo; |
||||
use Doctrine\DBAL\Schema\Schema; |
||||
use Doctrine\DBAL\Types\Type; |
||||
|
||||
/** |
||||
* Class Version20160610142700 |
||||
* Integrate the Skype plugin and create new settings current to enable it |
||||
* @package Application\Migrations\Schema\V111 |
||||
*/ |
||||
class Version20160610142700 extends AbstractMigrationChamilo |
||||
{ |
||||
/** |
||||
* @param Schema $schema |
||||
* @throws \Doctrine\DBAL\DBALException |
||||
* @throws \Doctrine\DBAL\Schema\SchemaException |
||||
*/ |
||||
public function up(Schema $schema) |
||||
{ |
||||
$dataList = $this |
||||
->connection |
||||
->executeQuery(" |
||||
SELECT id FROM extra_field |
||||
WHERE variable = 'skype' AND extra_field_type = 1 |
||||
") |
||||
->fetchAll(); |
||||
|
||||
if (empty($dataList)) { |
||||
$this->addSql(" |
||||
INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible, changeable, created_at) |
||||
VALUES (1, 1, 'skype', 'Skype', 1, 1, now()) |
||||
"); |
||||
} |
||||
|
||||
$this->addSql(" |
||||
INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible, changeable, created_at) |
||||
VALUES (1, 1, 'linkedin_url', 'LinkedInUrl', 1, 1, now()) |
||||
"); |
||||
|
||||
$this->addSettingCurrent( |
||||
'allow_show_skype_account', |
||||
null, |
||||
'radio', |
||||
'Platform', |
||||
'true', |
||||
'AllowShowSkypeAccountTitle', |
||||
'AllowShowSkypeAccountComment', |
||||
null, |
||||
null, |
||||
1, |
||||
true, |
||||
false, |
||||
[ |
||||
['value' => 'false', 'text' => 'No'], |
||||
['value' => 'true', 'text' => 'Yes'] |
||||
] |
||||
); |
||||
|
||||
$this->addSettingCurrent( |
||||
'allow_show_linkedin_url', |
||||
null, |
||||
'radio', |
||||
'Platform', |
||||
'true', |
||||
'AllowShowLinkedInUrlTitle', |
||||
'AllowShowLinkedInUrlComment', |
||||
null, |
||||
null, |
||||
1, |
||||
true, |
||||
false, |
||||
[ |
||||
['value' => 'false', 'text' => 'No'], |
||||
['value' => 'true', 'text' => 'Yes'] |
||||
] |
||||
); |
||||
} |
||||
|
||||
/** |
||||
* @param Schema $schema |
||||
* @throws \Doctrine\DBAL\DBALException |
||||
* @throws \Doctrine\DBAL\Schema\SchemaException |
||||
*/ |
||||
public function down(Schema $schema) |
||||
{ |
||||
|
||||
} |
||||
} |
@ -0,0 +1,36 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Application\Migrations\Schema\V111; |
||||
|
||||
use Application\Migrations\AbstractMigrationChamilo; |
||||
use Doctrine\DBAL\Schema\Schema; |
||||
use Doctrine\DBAL\Types\Type; |
||||
|
||||
/** |
||||
* Class Version20160623143200 |
||||
* Remove chatcall_date, chatcall_text, chatcall_user_id from User table |
||||
* @package Application\Migrations\Schema\V111 |
||||
*/ |
||||
class Version20160623143200 extends AbstractMigrationChamilo |
||||
{ |
||||
/** |
||||
* @param Schema $schema |
||||
* @throws \Doctrine\DBAL\Schema\SchemaException |
||||
*/ |
||||
public function up(Schema $schema) |
||||
{ |
||||
$schema |
||||
->getTable('user') |
||||
->dropColumn('chatcall_user_id') |
||||
->dropColumn('chatcall_date') |
||||
->dropColumn('chatcall_text'); |
||||
} |
||||
|
||||
/** |
||||
* @param Schema $schema |
||||
*/ |
||||
public function down(Schema $schema) |
||||
{ |
||||
} |
||||
} |
@ -0,0 +1,47 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Application\Migrations\Schema\V111; |
||||
|
||||
use Application\Migrations\AbstractMigrationChamilo; |
||||
use Doctrine\DBAL\Schema\Schema; |
||||
use Doctrine\DBAL\Types\Type; |
||||
|
||||
/** |
||||
* Class Version20160628220000 |
||||
* Integrate the Skype plugin and create new settings current to enable it |
||||
* @package Application\Migrations\Schema\V111 |
||||
*/ |
||||
class Version20160628220000 extends AbstractMigrationChamilo |
||||
{ |
||||
/** |
||||
* @param Schema $schema |
||||
* @throws \Doctrine\DBAL\DBALException |
||||
* @throws \Doctrine\DBAL\Schema\SchemaException |
||||
*/ |
||||
public function up(Schema $schema) |
||||
{ |
||||
$this |
||||
->connection |
||||
->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'dokeos_chapter'"); |
||||
$this |
||||
->connection |
||||
->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'dokeos_module'"); |
||||
$this |
||||
->connection |
||||
->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'chapter'"); |
||||
$this |
||||
->connection |
||||
->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'module'"); |
||||
} |
||||
|
||||
/** |
||||
* @param Schema $schema |
||||
* @throws \Doctrine\DBAL\DBALException |
||||
* @throws \Doctrine\DBAL\Schema\SchemaException |
||||
*/ |
||||
public function down(Schema $schema) |
||||
{ |
||||
|
||||
} |
||||
} |
@ -0,0 +1,39 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Application\Migrations\Schema\V111; |
||||
|
||||
use Application\Migrations\AbstractMigrationChamilo; |
||||
use Doctrine\DBAL\Schema\Schema; |
||||
use Doctrine\DBAL\Types\Type; |
||||
|
||||
/** |
||||
* Class Version20160701110000 |
||||
* Add option to remove splash screen on course creation |
||||
* @package Application\Migrations\Schema\V111 |
||||
*/ |
||||
class Version20160701110000 extends AbstractMigrationChamilo |
||||
{ |
||||
/** |
||||
* @param Schema $schema |
||||
* @throws \Doctrine\DBAL\DBALException |
||||
* @throws \Doctrine\DBAL\Schema\SchemaException |
||||
*/ |
||||
public function up(Schema $schema) |
||||
{ |
||||
$this->addSql("INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_creation_splash_screen',NULL,'radio','Course','true','CourseCreationSplashScreenTitle','CourseCreationSplashScreenComment','',NULL, 1)"); |
||||
$this->addSql("INSERT INTO settings_options (variable, value, display_text) VALUES ('course_creation_splash_screen','true','Yes') "); |
||||
$this->addSql("INSERT INTO settings_options (variable, value, display_text) VALUES ('course_creation_splash_screen','false','No') "); |
||||
} |
||||
|
||||
/** |
||||
* @param Schema $schema |
||||
* @throws \Doctrine\DBAL\DBALException |
||||
* @throws \Doctrine\DBAL\Schema\SchemaException |
||||
*/ |
||||
public function down(Schema $schema) |
||||
{ |
||||
$this->addSql("DELETE FROM settings_current WHERE variable = 'course_creation_splash_screen'"); |
||||
$this->addSql("DELETE FROM settings_options WHERE variable = 'course_creation_splash_screen'"); |
||||
} |
||||
} |
@ -1,14 +1,14 @@ |
||||
{ |
||||
"name": "blueimp-tmpl", |
||||
"homepage": "https://github.com/blueimp/JavaScript-Templates", |
||||
"version": "3.3.0", |
||||
"_release": "3.3.0", |
||||
"version": "3.4.0", |
||||
"_release": "3.4.0", |
||||
"_resolution": { |
||||
"type": "version", |
||||
"tag": "v3.3.0", |
||||
"commit": "f09f47c368e0dc7871be35119ef3eab9bb25bdf2" |
||||
"tag": "v3.4.0", |
||||
"commit": "dcb7a7b44c733c5df0b6000e777bc6942646607e" |
||||
}, |
||||
"_source": "git://github.com/blueimp/JavaScript-Templates.git", |
||||
"_source": "https://github.com/blueimp/JavaScript-Templates.git", |
||||
"_target": ">=2.5.4", |
||||
"_originalSource": "blueimp-tmpl" |
||||
} |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 839 B |
@ -0,0 +1,13 @@ |
||||
/* |
||||
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. |
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/ |
||||
CKEDITOR.plugins.setLang( 'scayt', 'zh', { |
||||
btn_about: '關於即時拼寫檢查', |
||||
btn_dictionaries: '字典', |
||||
btn_disable: '關閉即時拼寫檢查', |
||||
btn_enable: '啟用即時拼寫檢查', |
||||
btn_langs: '語言', |
||||
btn_options: '選項', |
||||
text_title: '即時拼寫檢查' |
||||
}); |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue