Nijcadmin

2011年6月7日 (火)に参加
10行目: 10行目:


= 2011年12月12日(月)=
= 2011年12月12日(月)=
=== FCKEditor を使うとwikipediaへのリンクが符号化される.===
=== FCKEditor を使うとwikipediaへのリンクが符号化される. ===
<pre>
<pre>
使用前 [[wikipedia:jp:理化学研究所|理化学研究所]]
使用前 [[wikipedia:jp:理化学研究所|理化学研究所]]
使用後 [[wikipedia:jp:%E7%90%86%E5%8C%96%E5%AD%A6%E7%A0%94%E7%A9%B6%E6%89%80|理化学研究所]]
使用後 [[wikipedia:jp:%E7%90%86%E5%8C%96%E5%AD%A6%E7%A0%94%E7%A9%B6%E6%89%80|理化学研究所]]
</pre>
</pre>
* plugins/mediawiki/fckplugin.js を以下のように修正
* extensions/FCKeditor/plugins/mediawiki/fckplugin.js を以下のように修正
<pre>
<pre>
if (a.className == 'extiw')
if (a.className == 'extiw')
24行目: 24行目:
         a.setAttribute( '_fcksavedurl', a.title ) ;
         a.setAttribute( '_fcksavedurl', a.title ) ;
}
}
</pre>
= 2011年12月7日(水)=
=== metaタグ index,follow の制御が効かない. ===
* 承認モジュール ApprovedRevs 由来の問題 [https://bugzilla.wikimedia.org/show_bug.cgi?id=29859 参考]
* includes/Article.php を以下のように修正
<pre>
// NIJC:
//if ( $this->getID() === 0 || $this->getOldID() ) {
if ( $this->getID() === 0 || $this->getOldID() == intval( @$_GET['oldid'] ) ) {
        # Non-articles (special pages etc), and old revisions
        return array( 'index'  => 'noindex',
                      'follow' => 'nofollow' );
} elseif ( $wgOut->isPrintable() ) {
</pre>
</pre>