aboutsummaryrefslogtreecommitdiff
path: root/app/class
diff options
context:
space:
mode:
Diffstat (limited to 'app/class')
-rw-r--r--app/class/art2.php10
-rw-r--r--app/class/controllerart.php2
2 files changed, 8 insertions, 4 deletions
diff --git a/app/class/art2.php b/app/class/art2.php
index 4f04858..01ce218 100644
--- a/app/class/art2.php
+++ b/app/class/art2.php
@@ -148,7 +148,11 @@ class Art2
public function title($type = 'string')
{
- return $this->title;
+ if($type == 'sort') {
+ return strtolower($this->title);
+ } else {
+ return $this->title;
+ }
}
public function description($type = 'string')
@@ -532,7 +536,7 @@ class Art2
public function setcss($css)
{
if (strlen($css) < self::LENTEXT and is_string($css)) {
- $this->css = strip_tags(trim(strtolower($css)));
+ $this->css = trim(strtolower($css));
}
}
@@ -722,7 +726,7 @@ class Art2
public function setauthors($authors)
{
if(is_array($authors)) {
- $this->authors = $authors;
+ $this->authors = array_values(array_filter($authors));
}
}
diff --git a/app/class/controllerart.php b/app/class/controllerart.php
index dfdde7f..95a9d3e 100644
--- a/app/class/controllerart.php
+++ b/app/class/controllerart.php
@@ -149,7 +149,7 @@ class Controllerart extends Controller
$this->setart($id, 'artedit');
- if ($this->importart() && $this->canedit()) {
+ if ($this->importart() && $this->canedit() && empty($this->art->editby())) {
$tablist = ['main' => $this->art->main(), 'css' => $this->art->css(), 'header' => $this->art->header(), 'nav' => $this->art->nav(), 'aside' => $this->art->aside(), 'footer' => $this->art->footer(), 'body' => $this->art->body(), 'javascript' => $this->art->javascript()];
$faviconlist = $this->mediamanager->listfavicon();