summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-27 14:00:57 +0200
committerSimon Rettberg2018-04-27 14:00:57 +0200
commit1f18997b2d72a5aea772f0f9d6ddb61718fbd380 (patch)
tree2203e622952c64a44a649c6d611e4356af9abd81 /inc
parent[locations] Restore row with unassigned machines (diff)
downloadslx-admin-1f18997b2d72a5aea772f0f9d6ddb61718fbd380.tar.gz
slx-admin-1f18997b2d72a5aea772f0f9d6ddb61718fbd380.tar.xz
slx-admin-1f18997b2d72a5aea772f0f9d6ddb61718fbd380.zip
Don't try to load non-existent style.css/clientscript.js
Diffstat (limited to 'inc')
-rw-r--r--inc/module.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/module.inc.php b/inc/module.inc.php
index fa2c4b98..6d160787 100644
--- a/inc/module.inc.php
+++ b/inc/module.inc.php
@@ -283,7 +283,7 @@ class Module
public function getScripts()
{
if ($this->directActivation && $this->clientPlugin) {
- if (!in_array('clientscript.js', $this->scripts)) {
+ if (!in_array('clientscript.js', $this->scripts) && file_exists($this->getDir() . '/clientscript.js')) {
$this->scripts[] = 'clientscript.js';
}
return $this->scripts;
@@ -294,7 +294,7 @@ class Module
public function getCss()
{
if ($this->directActivation && $this->clientPlugin) {
- if (!in_array('style.css', $this->css)) {
+ if (!in_array('style.css', $this->css) && file_exists($this->getDir() . '/style.css')) {
$this->css[] = 'style.css';
}
return $this->css;