diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/class/Opt.php | 4 | ||||
-rw-r--r-- | app/view/templates/media.php | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/app/class/Opt.php b/app/class/Opt.php index a489d5a..7ffbd62 100644 --- a/app/class/Opt.php +++ b/app/class/Opt.php @@ -32,7 +32,7 @@ class Opt extends Item public function resetall() { - $varlist = get_class_vars(__class__); + $varlist = get_class_vars(self::class); foreach ($varlist as $var => $default) { $method = 'set' . $var; @@ -42,7 +42,7 @@ class Opt extends Item public function reset($var) { - $varlist = get_class_vars(__class__); + $varlist = get_class_vars(self::class); if (in_array($var, $varlist)) { $this->$var = $varlist[$var]; } diff --git a/app/view/templates/media.php b/app/view/templates/media.php index 7e20f48..59d0836 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -76,7 +76,7 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css' <table id="medialist"> <tr> - <th>x</th> + <th id="checkall">x</th> <th><a href="<?= $mediaopt->getsortbyadress('id') ?>">id</a></th> <th>ext</th> <th><a href="<?= $mediaopt->getsortbyadress('type') ?>">type</a></th> @@ -113,6 +113,9 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css' </section> </main> + +<script src="<?= Wcms\Model::jspath() ?>media.bundle.js"></script> + </body> <?php $this->stop('page') ?>
\ No newline at end of file |