Skip to content

Commit

Permalink
Merge branch 'master' into trean_1_1
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Aug 27, 2013
2 parents 232b263 + f46433c commit fce4dc3
Show file tree
Hide file tree
Showing 335 changed files with 8,094 additions and 5,461 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
@@ -1,15 +1,9 @@
language: php
notifications:
email:
irc:
channels: "chat.freenode.net#horde"
on_success: change
on_failure: change
php:
# - 5.3
- 5.4
- 5.5
env: ACTIVESYNC_SQL_PDO_MYSQL_TEST_CONFIG='{"activesync":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' ALARM_TEST_CONFIG='{"alarm":{"test":{"horde":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' DB_ADAPTER_PDO_PGSQL_TEST_CONFIG='{"db":{"adapter":{"pdo":{"pgsql":{"test":{"username":"postgres","password":"","dbname":"test"}}}}}}' DB_ADAPTER_PDO_MYSQL_TEST_CONFIG='{"db":{"adapter":{"pdo":{"mysql":{"test":{"host":"localhost","username":"root","password":"","dbname":"test"}}}}}}' DB_ADAPTER_MYSQL_TEST_CONFIG='{"db":{"adapter":{"mysql":{"test":{"host":"localhost","username":"root","password":"","dbname":"test"}}}}}' DB_ADAPTER_MYSQLI_TEST_CONFIG='{"db":{"adapter":{"mysqli":{"test":{"host":"localhost","username":"root","password":"","dbname":"test"}}}}}' GROUP_SQL_PDO_PGSQL_TEST_CONFIG='{"group":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' GROUP_SQL_PDO_MYSQL_TEST_CONFIG='{"group":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' GROUP_SQL_MYSQL_TEST_CONFIG='{"group":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' GROUP_SQL_MYSQLI_TEST_CONFIG='{"group":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' PREFS_SQL_PDO_PGSQL_TEST_CONFIG='{"prefs":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' PREFS_SQL_PDO_MYSQL_TEST_CONFIG='{"prefs":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' PREFS_SQL_MYSQL_TEST_CONFIG='{"prefs":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' PREFS_SQL_MYSQLI_TEST_CONFIG='{"prefs":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SESSIONHANDLER_SQL_PDO_PGSQL_TEST_CONFIG='{"sessionhandler":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' SESSIONHANDLER_SQL_PDO_MYSQL_TEST_CONFIG='{"sessionhandler":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SESSIONHANDLER_SQL_MYSQL_TEST_CONFIG='{"sessionhandler":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SESSIONHANDLER_SQL_MYSQLI_TEST_CONFIG='{"sessionhandler":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SHARE_SQL_PDO_PGSQL_TEST_CONFIG='{"share":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' SHARE_SQL_PDO_MYSQL_TEST_CONFIG='{"share":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SHARE_SQL_MYSQL_TEST_CONFIG='{"share":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SHARE_SQL_MYSQLI_TEST_CONFIG='{"share":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' VFS_MONGO_TEST_CONFIG='{"vfs":{"mongo":{"hostspec":"localhost"}}}' VFS_SQL_PDO_PGSQL_TEST_CONFIG='{"vfs":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' VFS_SQL_PDO_MYSQL_TEST_CONFIG='{"vfs":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' VFS_SQL_MYSQL_TEST_CONFIG='{"vfs":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' VFS_SQL_MYSQLI_TEST_CONFIG='{"vfs":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' HTTP_TEST_CONFIG='{"http":{"server":"www.google.com"}}' IMAGE_EXIF_TEST_CONFIG='{"image":{"exiftool":"/usr/bin/exiftool"}}' PEAR_TEST_CONFIG='{"pear":{"config":"/etc/pear/pear.conf","server":"pear.horde.org"}}' SERVICE_GRAVATAR_TEST_CONFIG='{"service":{"gravatar":{"server":"http://www.gravatar.com"}}}' VCS_TEST_CONFIG='{"paths":{"ci":"\/usr\/bin\/ci","co":"\/usr\/bin\/co","rcs":"\/usr\/bin\/rcs","rcsdiff":"\/usr\/bin\/rcsdiff","rlog":"\/usr\/bin\/rlog","cvs":"\/usr\/bin\/cvs","cvsps":"\/usr\/bin\/cvsps","cvsps_home":"\/tmp","svn":"\/usr\/bin\/svn","diff":"\/usr\/bin\/diff","git":"\/usr\/bin\/git"}}' CRYPT_TEST_CONFIG='{"crypt":{"keyserver":false}}' LOCK_MONGO_TEST_CONFIG='{"lock":{"mongo":"localhost"}}' TOKEN_MONGO_TEST_CONFIG='{"token":{"mongo":"localhost"}}' IMAPCLIENT_TEST_CONFIG='{"imapclient":{"mongo":"localhost"}}'
env: ACTIVESYNC_SQL_PDO_MYSQL_TEST_CONFIG='{"activesync":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' ALARM_TEST_CONFIG='{"alarm":{"test":{"horde":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' CRYPT_TEST_CONFIG='{"crypt":{"keyserver":false}}' DB_ADAPTER_MYSQL_TEST_CONFIG='{"db":{"adapter":{"mysql":{"test":{"host":"localhost","username":"root","password":"","dbname":"test"}}}}}' DB_ADAPTER_MYSQLI_TEST_CONFIG='{"db":{"adapter":{"mysqli":{"test":{"host":"localhost","username":"root","password":"","dbname":"test"}}}}}' DB_ADAPTER_PDO_MYSQL_TEST_CONFIG='{"db":{"adapter":{"pdo":{"mysql":{"test":{"host":"localhost","username":"root","password":"","dbname":"test"}}}}}}' DB_ADAPTER_PDO_PGSQL_TEST_CONFIG='{"db":{"adapter":{"pdo":{"pgsql":{"test":{"username":"postgres","password":"","dbname":"test"}}}}}}' GROUP_SQL_MYSQL_TEST_CONFIG='{"group":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' GROUP_SQL_MYSQLI_TEST_CONFIG='{"group":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' GROUP_SQL_PDO_MYSQL_TEST_CONFIG='{"group":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' GROUP_SQL_PDO_PGSQL_TEST_CONFIG='{"group":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' HISTORY_SQL_MYSQL_TEST_CONFIG='{"history":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' HISTORY_SQL_MYSQLI_TEST_CONFIG='{"history":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' HISTORY_SQL_PDO_MYSQL_TEST_CONFIG='{"history":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' HISTORY_SQL_PDO_PGSQL_TEST_CONFIG='{"history":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' HTTP_TEST_CONFIG='{"http":{"server":"www.google.com"}}' IMAGE_EXIF_TEST_CONFIG='{"image":{"exiftool":"/usr/bin/exiftool"}}' IMAPCLIENT_TEST_CONFIG='{"imapclient":{"mongo":"localhost"}}' LOCK_MONGO_TEST_CONFIG='{"lock":{"mongo":"localhost"}}' PEAR_TEST_CONFIG='{"pear":{"config":"/etc/pear/pear.conf","server":"pear.horde.org"}}' PREFS_SQL_MYSQL_TEST_CONFIG='{"prefs":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' PREFS_SQL_MYSQLI_TEST_CONFIG='{"prefs":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' PREFS_SQL_PDO_MYSQL_TEST_CONFIG='{"prefs":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' PREFS_SQL_PDO_PGSQL_TEST_CONFIG='{"prefs":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' SERVICE_GRAVATAR_TEST_CONFIG='{"service":{"gravatar":{"server":"http://www.gravatar.com"}}}' SESSIONHANDLER_SQL_MYSQL_TEST_CONFIG='{"sessionhandler":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SESSIONHANDLER_SQL_MYSQLI_TEST_CONFIG='{"sessionhandler":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SESSIONHANDLER_SQL_PDO_MYSQL_TEST_CONFIG='{"sessionhandler":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SESSIONHANDLER_SQL_PDO_PGSQL_TEST_CONFIG='{"sessionhandler":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' SHARE_SQL_MYSQL_TEST_CONFIG='{"share":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SHARE_SQL_MYSQLI_TEST_CONFIG='{"share":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SHARE_SQL_PDO_MYSQL_TEST_CONFIG='{"share":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' SHARE_SQL_PDO_PGSQL_TEST_CONFIG='{"share":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}' TOKEN_MONGO_TEST_CONFIG='{"token":{"mongo":"localhost"}}' VCS_TEST_CONFIG='{"paths":{"ci":"\/usr\/bin\/ci","co":"\/usr\/bin\/co","rcs":"\/usr\/bin\/rcs","rcsdiff":"\/usr\/bin\/rcsdiff","rlog":"\/usr\/bin\/rlog","cvs":"\/usr\/bin\/cvs","cvsps":"\/usr\/bin\/cvsps","cvsps_home":"\/tmp","svn":"\/usr\/bin\/svn","diff":"\/usr\/bin\/diff","git":"\/usr\/bin\/git"}}' VFS_MONGO_TEST_CONFIG='{"vfs":{"mongo":{"hostspec":"localhost"}}}' VFS_SQL_MYSQL_TEST_CONFIG='{"vfs":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' VFS_SQL_MYSQLI_TEST_CONFIG='{"vfs":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' VFS_SQL_PDO_MYSQL_TEST_CONFIG='{"vfs":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}' VFS_SQL_PDO_PGSQL_TEST_CONFIG='{"vfs":{"sql":{"pdo_pgsql":{"adapter":"pdo_pgsql","username":"postgres","password":"","dbname":"test","charset":"utf-8"}}}}'
before_install:
- sudo locale-gen cs_CZ.UTF-8 de_DE.UTF-8 tr_TR
- sudo apt-get -qq install libwbxml2-utils aspell rcs cvs cvsps libimage-exiftool-perl
Expand Down
Binary file modified agora/locale/de/LC_MESSAGES/agora.mo
Binary file not shown.
9 changes: 8 additions & 1 deletion ansel/docs/CHANGES
@@ -1,9 +1,16 @@
----------
v3.0.0-git
v3.0.1-git
----------



------
v3.0.0
------

[mjr] Fixed fatal error when using face widgets.


---------
v3.0.0RC1
---------
Expand Down
6 changes: 3 additions & 3 deletions ansel/docs/INSTALL
Expand Up @@ -122,18 +122,18 @@ install any dependencies of Ansel too. If you want to install Ansel with all
optional dependencies, but without the binary PECL packages that need to be
compiled, specify both the ``-a`` and the ``-B`` flag::

pear install -a -B horde/ansel-alpha
pear install -a -B horde/ansel

By default, only the required dependencies will be installed::

pear install horde/ansel-alpha
pear install horde/ansel

If you want to install Ansel even with all binary dependencies, you need to
remove the ``-B`` flag. Please note that this might also try to install PHP
extensions through PECL that might need further configuration or activation in
your PHP configuration::

pear install -a horde/ansel-alpha
pear install -a horde/ansel

Installing from Git
~~~~~~~~~~~~~~~~~~~
Expand Down
17 changes: 8 additions & 9 deletions ansel/docs/RELEASE_NOTES
Expand Up @@ -10,12 +10,12 @@
* Horde_Release::FOCUS_MAJORSECURITY - Major security fixes
* Horde_Release::FOCUS_DOCS - Documentation improvements
*/
$this->notes['fm']['focus'] = array(Horde_Release::FOCUS_MINORBUG);
$this->notes['fm']['focus'] = array(Horde_Release::FOCUS_MAJORFEATURE);

/* Mailing list release notes. */
$this->notes['ml']['changes'] = <<<ML
The Horde Team is pleased to announce the first release candidate of the Ansel
Photo Management and Web Gallery application version H5 (3.0.0).
The Horde Team is pleased to announce the final release of the Ansel Photo
Management and Web Gallery application version H5 (3.0.0).

Ansel is a full featured photo management application. With it, you can
organize your photos in any number of galleries and subgalleries, share
Expand All @@ -26,16 +26,15 @@ http://www.horde.org/apps/ansel.
For detailed installation and configuration instructions, please see
http://www.horde.org/apps/ansel/docs/INSTALL

Testing is requested and comments are encouraged.
Updated translations would also be great.

Major changes compared to the Ansel version H5 (3.0.0beta1) are:
* Small bugfixes.
Major changes compared to the Ansel H4 versions are:
* Compatible with Horde 5.
* Improved support for SQLite.
ML;

/* Freshmeat release notes, not more than 600 characters. */
$this->notes['fm']['changes'] = <<<FM
Small bugfixes.
Compatible with Horde 5.
Improved support for SQLite.
FM;

$this->notes['name'] = 'Ansel';
Expand Down
5 changes: 0 additions & 5 deletions ansel/docs/TODO

This file was deleted.

2 changes: 1 addition & 1 deletion ansel/lib/Application.php
Expand Up @@ -39,7 +39,7 @@ class Ansel_Application extends Horde_Registry_Application

/**
*/
public $version = 'H5 (3.0.0-git)';
public $version = 'H5 (3.0.1-git)';

/**
* Global variables defined:
Expand Down
Binary file modified ansel/locale/de/LC_MESSAGES/ansel.mo
Binary file not shown.
33 changes: 22 additions & 11 deletions ansel/package.xml
Expand Up @@ -22,15 +22,15 @@
<email>mrubinsk@horde.org</email>
<active>yes</active>
</lead>
<date>2013-07-17</date>
<time>00:28:53</time>
<date>2013-08-22</date>
<time>18:21:03</time>
<version>
<release>3.0.0RC2</release>
<release>3.0.1</release>
<api>3.0.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
Expand All @@ -57,7 +57,6 @@
<file name="INSTALL" role="doc" />
<file name="lighttpd-ansel.conf" role="doc" />
<file name="RELEASE_NOTES" role="doc" />
<file name="TODO" role="doc" />
</dir> <!-- /docs -->
<dir name="faces">
<dir name="search">
Expand Down Expand Up @@ -824,7 +823,6 @@
<install as="INSTALL" name="docs/INSTALL" />
<install as="lighttpd-ansel.conf" name="docs/lighttpd-ansel.conf" />
<install as="RELEASE_NOTES" name="docs/RELEASE_NOTES" />
<install as="TODO" name="docs/TODO" />
<install as="ansel/faces/claim.php" name="faces/claim.php" />
<install as="ansel/faces/custom.php" name="faces/custom.php" />
<install as="ansel/faces/face.php" name="faces/face.php" />
Expand Down Expand Up @@ -1285,12 +1283,25 @@
</release>
<release>
<version>
<release>3.0.0RC2</release>
<release>3.0.0</release>
<api>3.0.0</api></version>
<stability>
<release>beta</release>
<api>beta</api></stability>
<date>2013-07-17</date>
<release>stable</release>
<api>stable</api></stability>
<date>2013-08-22</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [mjr] Fixed fatal error when using face widgets.
</notes>
</release>
<release>
<version>
<release>3.0.1</release>
<api>3.0.0</api></version>
<stability>
<release>stable</release>
<api>stable</api></stability>
<date>2013-08-22</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
*
Expand Down
Binary file modified chora/locale/cs/LC_MESSAGES/chora.mo
Binary file not shown.
Binary file modified chora/locale/de/LC_MESSAGES/chora.mo
Binary file not shown.
Binary file modified chora/locale/sk/LC_MESSAGES/chora.mo
Binary file not shown.
1 change: 0 additions & 1 deletion chora/themes/default/screen.css
Expand Up @@ -15,7 +15,6 @@ div.browsefileoptions {
margin: 0 0 8px 0;
}
div.browsefileoptions div {
display: -moz-inline-stack;
display: inline-block;
border: 1px solid #ddd;
padding: 6px;
Expand Down
11 changes: 8 additions & 3 deletions components/lib/Components/Release/Task/Freecode.php
Expand Up @@ -108,9 +108,14 @@ public function run(&$options)
}

if (!$this->getTasks()->pretend()) {
$fm = $this->_getFreecode($options);
$fm->publish($publish_data);
$fm->updateLinks($link_data);
try {
$fm = $this->_getFreecode($options);
$fm->publish($publish_data);
$fm->updateLinks($link_data);
} catch (Exception $e) {
$this->getOutput()->warn('Failed to pulish to Freecode!');
$this->getOutput()->warn((string)$e);
}
} else {
$info = 'FREECODE
Expand Down
6 changes: 3 additions & 3 deletions content/test/Content/Base.php
Expand Up @@ -209,8 +209,8 @@ protected function _testGetRecentTags()
$this->assertEquals(4, count($recent));
$this->assertEquals(4, $recent[0]['tag_id']);
$this->assertEquals('personal', $recent[0]['tag_name']);
$date = new Horde_Date($recent[0]['created'], 'UTC');
$this->assertEquals('1230786360', $date->timestamp());
$date = new Horde_Date($recent[0]['created']);
$this->assertEquals(1230764760, $date->timestamp());
}

protected function _testGetRecentTagsByUser()
Expand All @@ -237,7 +237,7 @@ protected function _testGetRecentObjects()
$this->assertEquals(4, count($recent));
$this->assertEquals(4, $recent[0]['object_id']);
$date = new Horde_Date($recent[0]['created'], 'UTC');
$this->assertEquals('1230786360', $date->timestamp());
$this->assertEquals(1230764760, $date->timestamp());
}

protected function _testUntag()
Expand Down
6 changes: 3 additions & 3 deletions content/test/Content/Sql/MysqlTest.php
Expand Up @@ -21,10 +21,10 @@ public static function setUpBeforeClass()
self::$reason = 'No mysql extension';
return;
}
$config = self::getConfig('GROUP_SQL_MYSQL_TEST_CONFIG',
$config = self::getConfig('CONTENT_SQL_MYSQL_TEST_CONFIG',
__DIR__ . '/..');
if ($config && !empty($config['group']['sql']['mysql'])) {
self::$db = new Horde_Db_Adapter_Mysql($config['group']['sql']['mysql']);
if ($config && !empty($config['content']['sql']['mysql'])) {
self::$db = new Horde_Db_Adapter_Mysql($config['content']['sql']['mysql']);
parent::setUpBeforeClass();
}
}
Expand Down
6 changes: 3 additions & 3 deletions content/test/Content/Sql/MysqliTest.php
Expand Up @@ -21,10 +21,10 @@ public static function setUpBeforeClass()
self::$reason = 'No mysqli extension';
return;
}
$config = self::getConfig('GROUP_SQL_MYSQLI_TEST_CONFIG',
$config = self::getConfig('CONTENT_SQL_MYSQLI_TEST_CONFIG',
__DIR__ . '/..');
if ($config && !empty($config['group']['sql']['mysqli'])) {
self::$db = new Horde_Db_Adapter_Mysqli($config['group']['sql']['mysqli']);
if ($config && !empty($config['content']['sql']['mysqli'])) {
self::$db = new Horde_Db_Adapter_Mysqli($config['content']['sql']['mysqli']);
parent::setUpBeforeClass();
}
}
Expand Down
6 changes: 3 additions & 3 deletions content/test/Content/Sql/Pdo/MysqlTest.php
Expand Up @@ -13,10 +13,10 @@ public static function setUpBeforeClass()
self::$reason = 'No mysql extension or no mysql PDO driver';
return;
}
$config = self::getConfig('GROUP_SQL_PDO_MYSQL_TEST_CONFIG',
$config = self::getConfig('CONTENT_SQL_PDO_MYSQL_TEST_CONFIG',
__DIR__ . '/../..');
if ($config && !empty($config['group']['sql']['pdo_mysql'])) {
self::$db = new Horde_Db_Adapter_Pdo_Mysql($config['group']['sql']['pdo_mysql']);
if ($config && !empty($config['content']['sql']['pdo_mysql'])) {
self::$db = new Horde_Db_Adapter_Pdo_Mysql($config['content']['sql']['pdo_mysql']);
parent::setUpBeforeClass();
}
}
Expand Down

0 comments on commit fce4dc3

Please sign in to comment.