aboutsummaryrefslogtreecommitdiff
path: root/app/class/art2.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-08-16 15:23:42 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-08-16 15:23:42 +0200
commitb5ebee8dea28e3a9c5160de1c56f7715153f3af4 (patch)
treeb7729495fdfa58210612d8280058a7412c57e9ea /app/class/art2.php
parent566b995bab45355d814ac5a8bfbf18e3a59c14ba (diff)
downloadwcms-b5ebee8dea28e3a9c5160de1c56f7715153f3af4.tar.gz
wcms-b5ebee8dea28e3a9c5160de1c56f7715153f3af4.zip
Generate list code function working
Diffstat (limited to 'app/class/art2.php')
-rw-r--r--app/class/art2.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/class/art2.php b/app/class/art2.php
index 56bc74e..a43d35e 100644
--- a/app/class/art2.php
+++ b/app/class/art2.php
@@ -296,7 +296,11 @@ class Art2
public function customhead($type = "string")
{
- return $this->customhead;
+ if($type === 'string') {
+ return $this->customhead;
+ } elseif($type === 'int') {
+ return substr_count($this->customhead, PHP_EOL) + 1;
+ }
}
public function footer($type = "string")