From 6f0763202b3ca5af455b8aef95c6d89aea0f772f Mon Sep 17 00:00:00 2001 From: Alexandre Russo Date: Wed, 21 May 2014 11:25:51 +0200 Subject: [PATCH] PHPCI/Plugin/Xmpp.php : Fix config file name of sendxmpp (sendxmpprc instead of sendxmpp) --- PHPCI/Plugin/Xmpp.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PHPCI/Plugin/Xmpp.php b/PHPCI/Plugin/Xmpp.php index fd487df3..dda88473 100644 --- a/PHPCI/Plugin/Xmpp.php +++ b/PHPCI/Plugin/Xmpp.php @@ -130,12 +130,12 @@ class XMPP implements \PHPCI\Plugin } /** - * Find config file for sendxmpp binary (default is ~/.sendxmpp) + * Find config file for sendxmpp binary (default is ~/.sendxmpprc) */ public static function findConfigFile() { - if (file_exists('~/.sendxmpp')) { - if( md5(file_get_contents('~/.sendxmpp')) !== + if (file_exists('~/.sendxmpprc')) { + if( md5(file_get_contents('~/.sendxmpprc')) !== md5($this->getConfigFormat())) { return null; } @@ -169,8 +169,8 @@ class XMPP implements \PHPCI\Plugin * Try to build conf file */ if(is_null(self::findConfigFile())) { - file_put_contents('~/.sendxmpp', $this->getConfigFormat()); - chmod('~/.sendxmpp', 0600); + file_put_contents('~/.sendxmpprc', $this->getConfigFormat()); + chmod('~/.sendxmpprc', 0600); } /*