diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-16 15:23:42 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-16 15:23:42 +0200 |
commit | b5ebee8dea28e3a9c5160de1c56f7715153f3af4 (patch) | |
tree | b7729495fdfa58210612d8280058a7412c57e9ea /app/class/art2.php | |
parent | 566b995bab45355d814ac5a8bfbf18e3a59c14ba (diff) | |
download | wcms-b5ebee8dea28e3a9c5160de1c56f7715153f3af4.tar.gz wcms-b5ebee8dea28e3a9c5160de1c56f7715153f3af4.zip |
Generate list code function working
Diffstat (limited to 'app/class/art2.php')
-rw-r--r-- | app/class/art2.php | 6 |
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") |