mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Merge branch '3.0.x'
This commit is contained in:
commit
c44dea73d3
@ -93,7 +93,7 @@
|
||||
-----------------
|
||||
|
||||
EOT;
|
||||
passthru('tar cvf ../file.tar --exclude=*coffee -- *', $code);
|
||||
passthru('tar cvf ../file.tar --exclude=*coffee --exclude-vcs -- *', $code);
|
||||
if ($code != 0) exit($code);
|
||||
echo <<<EOT
|
||||
|
||||
@ -123,7 +123,7 @@
|
||||
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', 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')) {
|
||||
file_put_contents('package.xml', file_get_contents('package.xml.old'));
|
||||
unlink('package.xml.old');
|
||||
|
@ -174,6 +174,10 @@ public function readRoom() {
|
||||
if ($this->roomID === 0) {
|
||||
// no room given
|
||||
if (CHAT_FORCE_ROOM_SELECT) {
|
||||
$this->rooms = array_filter($this->rooms, function ($room) {
|
||||
return $room->canEnter();
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user