mirror of
https://github.com/BeitDina/AutoIndex.git
synced 2026-08-05 17:10:39 +02:00
Update Item.php
var extend_description added for auto translation
This commit is contained in:
committed by
GitHub
parent
3e3ce2b86c
commit
afb868b700
@@ -177,7 +177,8 @@ abstract class Item
|
||||
$this -> icon = $this -> new_icon = $this -> md5_link = $this -> thumb_link = '';
|
||||
global $descriptions, $words;
|
||||
$description = ((DESCRIPTION_FILE && $descriptions -> is_set($full_name)) ? $descriptions -> __get($full_name) : strtoupper(substr($filename, 0, strrpos($filename, '.'))));
|
||||
$this -> description = ($words -> is_set($description) ? $words -> __get($description) : $description);
|
||||
$extend_description = (($words -> is_set('CHAP') && $words -> is_set(strtoupper(substr($description, 0, strrpos($description, '_'))))) ? $words -> __get(strtoupper(substr($description, 0, strrpos($description, '_')))) . ' ' . $words -> __get('CHAP') . ' ' . substr(strrchr($description, '_'), 1) : $description);
|
||||
$this -> description = ($words -> is_set($description) ? $words -> __get($description) : $extend_description );
|
||||
$this -> parent_dir = $parent_dir;
|
||||
if (DAYS_NEW)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user