Skip to content
Permalink
Browse files

BUG Fix cookie errors when running in CLI

  • Loading branch information...
Damian Mooyman
Damian Mooyman committed Jul 8, 2015
1 parent 0012bc6 commit c7bd50427a4e0ad446502547b81648d78d354062
Showing with 4 additions and 0 deletions.
  1. +4 −0 model/DB.php
@@ -73,6 +73,10 @@ public static function getConn($name = 'default') {
* Set it to null to revert to the main database.
*/
public static function set_alternative_database_name($name = null) {
// Skip if CLI
if(Director::is_cli()) {
return;
}
if($name) {
if(!self::valid_alternative_database_name($name)) {
throw new InvalidArgumentException(sprintf(

0 comments on commit c7bd504

Please sign in to comment.
You can’t perform that action at this time.