User talk:Meffiem~metawiki/Newpages
Meffiem, thanks for nice extension. However, I experience some problem with cache (using mediawiki 1.6alpha): it looks that the system doesn't clear the cache for the page where <newpages> tag is located after creating new article, so the list doesn't update too. Is it known problem? Are there any workarounds? Thanks, Ilya Schurov 19:21, 28 March 2006 (UTC)
Newpages extension broken? Try this fix
editWhen upgrading to Mediawiki 1.19 I found that the Newpages extension no longer worked. Turns out that the $skin->MakeKnownLink() has been deprecated. Ignore the advice to replace with knownLink() because that has also been removed. In fact, the Link functions have been moved from Skin.php to Linker.php. Additionally, the Linker code was not recognizing the Title class type and writing out the super descriptive "ERROR" within an HTML comment.
To make this extension work again, replace the formatRow() function of newpages.php with this code:
function formatRow( $row ) { global $wgLang, $wgUser; $linker = new Linker; $title = Title::newFromText($row->title); $title_text = $title->getText(); $link = $linker->link($title,$title_text); $d = $wgLang->date( $row->timestamp, true ); $s = "$link, $d"; return $s; }
Thanks, Tim Wendt 14:29, 13 September 2012 (CST)