aboutsummaryrefslogtreecommitdiff
path: root/app/class/art2.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-02-01 15:15:13 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-02-01 15:15:13 +0100
commit0e8661256f7851e1feb0d5d49a46a2a56149fd83 (patch)
tree84ad7c238cb8c24e80f07a12f4a32afd64bb897e /app/class/art2.php
parentcc183f395a5e4eb93b712dfacc8083f6554b2250 (diff)
downloadwcms-0e8661256f7851e1feb0d5d49a46a2a56149fd83.tar.gz
wcms-0e8661256f7851e1feb0d5d49a46a2a56149fd83.zip
edit by fix
Diffstat (limited to 'app/class/art2.php')
-rw-r--r--app/class/art2.php10
1 files changed, 7 insertions, 3 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));
}
}