From b5ebee8dea28e3a9c5160de1c56f7715153f3af4 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 16 Aug 2019 15:23:42 +0200 Subject: Generate list code function working --- app/class/art2.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/class/art2.php') 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") -- cgit v1.2.3