mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-10 00:30:09 +00:00
Merge branch 'master' of github.com:wbbaddons/Tims-Chat
This commit is contained in:
commit
6de5e5a6da
14
build.php
14
build.php
@ -13,6 +13,10 @@
|
||||
-----------
|
||||
|
||||
EOT;
|
||||
if (file_exists('package.xml.old')) {
|
||||
file_put_contents('package.xml', file_get_contents('package.xml.old'));
|
||||
unlink('package.xml.old');
|
||||
}
|
||||
if (file_exists('file.tar')) unlink('file.tar');
|
||||
if (file_exists('template.tar')) unlink('template.tar');
|
||||
if (file_exists('acptemplate.tar')) unlink('acptemplate.tar');
|
||||
@ -84,7 +88,7 @@
|
||||
echo <<<EOT
|
||||
|
||||
Building acptemplate.tar
|
||||
---------------------
|
||||
------------------------
|
||||
|
||||
EOT;
|
||||
chdir('../acptemplate');
|
||||
@ -97,7 +101,13 @@
|
||||
|
||||
EOT;
|
||||
chdir('..');
|
||||
passthru('tar cvf be.bastelstu.wcf.chat.tar * --exclude=file --exclude=template --exclude=acptemplate --exclude=build.php', $code);
|
||||
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')));
|
||||
passthru('tar cvf be.bastelstu.wcf.chat.tar * --exclude=*.old --exclude=file --exclude=template --exclude=acptemplate --exclude=build.php', $code);
|
||||
if (file_exists('package.xml.old')) {
|
||||
file_put_contents('package.xml', file_get_contents('package.xml.old'));
|
||||
unlink('package.xml.old');
|
||||
}
|
||||
if ($code != 0) exit($code);
|
||||
|
||||
if (file_exists('file.tar')) unlink('file.tar');
|
||||
|
@ -63,7 +63,7 @@ public function loadCommand() {
|
||||
return new commands\Plain($this);
|
||||
}
|
||||
|
||||
$class = '\wcf\system\chat\command\commands\\'.ucfirst($parts[0]);
|
||||
$class = '\wcf\system\chat\command\commands\\'.ucfirst(strtolower($parts[0]));
|
||||
if (!class_exists($class)) {
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user