1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Merge branch '3.0.x'

This commit is contained in:
Tim Düsterhus 2014-08-08 01:59:50 +02:00
commit c44dea73d3
2 changed files with 6 additions and 2 deletions

View File

@ -93,7 +93,7 @@
----------------- -----------------
EOT; EOT;
passthru('tar cvf ../file.tar --exclude=*coffee -- *', $code); passthru('tar cvf ../file.tar --exclude=*coffee --exclude-vcs -- *', $code);
if ($code != 0) exit($code); if ($code != 0) exit($code);
echo <<<EOT echo <<<EOT
@ -123,7 +123,7 @@
file_put_contents('package.xml.old', file_get_contents('package.xml')); file_put_contents('package.xml.old', file_get_contents('package.xml'));
file_put_contents('package.xml', preg_replace('~<date>\d{4}-\d{2}-\d{2}</date>~', '<date>'.date('Y-m-d').'</date>', file_get_contents('package.xml'))); file_put_contents('package.xml', preg_replace('~<date>\d{4}-\d{2}-\d{2}</date>~', '<date>'.date('Y-m-d').'</date>', file_get_contents('package.xml')));
file_put_contents('package.xml', str_replace('</version>', '</version><!-- git id '.trim(shell_exec('git describe --always')).' -->', file_get_contents('package.xml'))); file_put_contents('package.xml', str_replace('</version>', '</version><!-- git id '.trim(shell_exec('git describe --always')).' -->', file_get_contents('package.xml')));
passthru('tar cvf be.bastelstu.chat.tar --exclude=*.old --exclude=file --exclude=template --exclude=acptemplate --exclude=contrib -- *', $code); passthru('tar cvf be.bastelstu.chat.tar --exclude=*.old --exclude=file --exclude-vcs --exclude=template --exclude=acptemplate --exclude=contrib -- *', $code);
if (file_exists('package.xml.old')) { if (file_exists('package.xml.old')) {
file_put_contents('package.xml', file_get_contents('package.xml.old')); file_put_contents('package.xml', file_get_contents('package.xml.old'));
unlink('package.xml.old'); unlink('package.xml.old');

View File

@ -174,6 +174,10 @@ public function readRoom() {
if ($this->roomID === 0) { if ($this->roomID === 0) {
// no room given // no room given
if (CHAT_FORCE_ROOM_SELECT) { if (CHAT_FORCE_ROOM_SELECT) {
$this->rooms = array_filter($this->rooms, function ($room) {
return $room->canEnter();
});
return; return;
} }
else { else {