1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 23:26:41 +02:00

Issue #3514 - Display page count to avoid accidental deletion of populated chapters.

This commit is contained in:
camer0n
2025-04-13 09:04:29 -07:00
parent 306c3790e5
commit 93eeaf614d
3 changed files with 55 additions and 45 deletions

View File

@@ -3969,7 +3969,7 @@ class e_parse
/**
* Generic variable translator for LAN definitions.
*
* @param $lan - string LAN
* @param string $lan - string LAN or LAN constant.
* @param string | array $vals - either a single value, which will replace '[x]' or an array with key=>value pairs.
* @return string
* @example $tp->lanVars("My name is [x] and I own a [y]", array("John","Cat"));
@@ -3977,7 +3977,7 @@ class e_parse
*/
public function lanVars($lan, $vals, $bold = false)
{
$lan = defset($lan, $lan);
$array = (!is_array($vals)) ? array('x' => $vals) : $vals;
$search = array();