Browse Source

Update content.inc.php

If the 'tv' variable's value has one or more equal sign, the string is cut at the first equal sign. After this change, you can use equal sign in the value of 'tv' variable. It is very useful, when you add a special character or icon ( for example: <span class="glyphicons glyphicons-envelope"></span>) for the value. It works after this modification.
pull/34/head
Franky-Boy 10 years ago
parent
commit
2fbe2c4ee4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cms/includes/content.inc.php

+ 1
- 1
cms/includes/content.inc.php View File

@ -94,7 +94,7 @@ foreach($tv_array as $tv_item)
{ {
if($tv_item) if($tv_item)
{ {
$tv_item_parts = explode('=', $tv_item);
$tv_item_parts = explode('=', $tv_item, 2);
$tv[trim($tv_item_parts[0])] = isset($tv_item_parts[1]) ? trim($tv_item_parts[1]) : true; $tv[trim($tv_item_parts[0])] = isset($tv_item_parts[1]) ? trim($tv_item_parts[1]) : true;
} }
} }


Loading…
Cancel
Save