WackoWiki: Вам запрещён доступDev/PatchesHacks/LastEdited ...

Home Page | Изменения | Новые Комменты | Пользователи | Каталог | Регистрация | Вход:  Пароль:  

Action: LastEdited


{{LastEdited}}


/actions/lastedited.php

<?php
//Declaration and the read in...
if($pages = $this->LoadRevisions($this->tag))
{
  
$this->context[++$this->current_context] = "";
  
$last_edited = $pages[0];

  
//Output
  
if ($this->GetResourceValue("LastEdited"))
   
$output .= $this->GetResourceValue("LastEdited").": ";
  else
  
$output .= "Last edited by: ";
  
$output .= $this->Link($last_edited["user"]);
  
$output .= " <small>(".$this->ComposeLinkToPage($page["tag"], "revisions"."\" title=\"".$this->GetResourceValue("RevisionTip"), $this->Link($last_edited["time"]), 0).")</small>";
  print(
$output);
  
$this->current_context--;
} else {
  print(
$this->GetResourceValue("ReadAccessDenied"));
}
?>

How to

Localization

put this at the end of your language file


/lang/wakka.xyz.php


pls. notice that this entry will not survive an Wacko upgrade, so you have to redo this


[xyz] proposed translations
[de] Zuletzt editiert von; Letzte Änderung von
[fr]
[ru]

To Do



 
Файлов нет. [Показать файлы/форму]
Комментариев нет. [Показать комментарии/форму]
Donate
Время работы: 2.093 s
Использовано памяти: 2.798 Mb