Esempio n. 1
0
 function getLastEditedInfo()
 {
     global $wgTitle;
     if (self::$mLastEditedInfo) {
         return self::$mLastEditedInfo;
     }
     $dbr = wfGetDB(DB_SLAVE);
     $bad = WikihowUser::getBotIDs();
     $bad[] = 0;
     // filter out anons too, as per Jack
     $row = $dbr->selectRow('revision', array('rev_user', 'rev_user_text', 'rev_timestamp'), array('rev_user NOT IN (' . $dbr->makeList($bad) . ")", "rev_page" => $wgTitle->getArticleID()), __METHOD__, array("ORDER BY" => "rev_id DESC", "LIMIT" => 1));
     $info->rev_user_text = $row->rev_user_text;
     $info->rev_user = $row->rev_user;
     $info->rev_timestamp = $row->rev_timestamp;
     self::$mLastEditedInfo = $info;
     return $info;
 }
Esempio n. 2
0
	<?php 
$catlinks = $sk->getCategoryLinks(false);
$authors = $sk->getAuthorFooter();
if ($authors != "" || is_array($this->data['language_urls']) || $catlinks != "") {
    ?>
<h2 class="section_head non_edit" id="article_info_header"><?php 
    echo wfMsg('article_info');
    ?>
<div class="kiwi_tab"></div></h2>
    <div id="article_info" class="article_inner">
		<?php 
    echo $fa;
    ?>
        <p><?php 
    echo NewLayout::getLastEdited();
    ?>
</p>
		<p>
			<?php 
    echo wfMsg('categories') . ":<br/>{$catlinks}";
    ?>

        </p>
			<p><?php 
    echo $authors;
    ?>
</p>

        <?php 
    if (is_array($this->data['language_urls'])) {