mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-11 00:40: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;
|
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('file.tar')) unlink('file.tar');
|
||||||
if (file_exists('template.tar')) unlink('template.tar');
|
if (file_exists('template.tar')) unlink('template.tar');
|
||||||
if (file_exists('acptemplate.tar')) unlink('acptemplate.tar');
|
if (file_exists('acptemplate.tar')) unlink('acptemplate.tar');
|
||||||
@ -84,7 +88,7 @@
|
|||||||
echo <<<EOT
|
echo <<<EOT
|
||||||
|
|
||||||
Building acptemplate.tar
|
Building acptemplate.tar
|
||||||
---------------------
|
------------------------
|
||||||
|
|
||||||
EOT;
|
EOT;
|
||||||
chdir('../acptemplate');
|
chdir('../acptemplate');
|
||||||
@ -97,7 +101,13 @@
|
|||||||
|
|
||||||
EOT;
|
EOT;
|
||||||
chdir('..');
|
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 ($code != 0) exit($code);
|
||||||
|
|
||||||
if (file_exists('file.tar')) unlink('file.tar');
|
if (file_exists('file.tar')) unlink('file.tar');
|
||||||
|
@ -63,7 +63,7 @@ public function loadCommand() {
|
|||||||
return new commands\Plain($this);
|
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)) {
|
if (!class_exists($class)) {
|
||||||
throw new NotFoundException();
|
throw new NotFoundException();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user