$wgOut->setRobotpolicy( 'noindex,nofollow' );
$sk = $wgUser->getSkin();
- $loglink = $sk->makeKnownLink( $wgLang->getNsText( NS_WIKIPEDIA ) .
+ $loglink = $sk->makeKnownLink( $wgLang->getNsText( NS_PROJECT ) .
':' . wfMsg( 'dellogpage' ), wfMsg( 'deletionlog' ) );
$text = wfMsg( 'deletedtext', $deleted, $loglink );
# Fix the code and remove these...
define('NS_WP', NS_PROJECT);
-define('NS_WIKIPEDIA', NS_PROJECT);
define('NS_WP_TALK', NS_PROJECT_TALK);
+define('NS_WIKIPEDIA', NS_PROJECT);
define('NS_WIKIPEDIA_TALK', NS_PROJECT_TALK);
?>
NS_TALK => 'Talk',
NS_USER => 'User',
NS_USER_TALK => 'User_talk',
- NS_WIKIPEDIA => 'Project',
- NS_WIKIPEDIA_TALK => 'Project_talk',
+ NS_PROJECT => 'Project',
+ NS_PROJECT_TALK => 'Project_talk',
NS_IMAGE => 'Image',
NS_IMAGE_TALK => 'Image_talk',
NS_MEDIAWIKI => 'MediaWiki',
/* These functions are deprecated */
function getSpecial() { return NS_SPECIAL; }
function getUser() { return NS_USER; }
- function getWikipedia() { return NS_WP; }
+ function getWikipedia() { return NS_PROJECT; }
function getImage() { return NS_IMAGE; }
function getMedia() { return NS_MEDIA; }
function getCategory() { return NS_CATEGORY; }
function isTalk( $index )
{
- if ( NS_TALK == $index || NS_USER_TALK == $index || NS_WP_TALK
- == $index || NS_IMAGE_TALK == $index || NS_MEDIAWIKI_TALK == $index ||
- NS_TEMPLATE_TALK == $index || NS_HELP_TALK == $index ||
- NS_CATEGORY_TALK == $index ) {
- return true;
- }
- return false;
+ return ( $index == NS_TALK || $index == NS_USER_TALK ||
+ $index == NS_PROJECT_TALK || $index == NS_IMAGE_TALK ||
+ $index == NS_MEDIAWIKI_TALK || $index == NS_TEMPLATE_TALK ||
+ $index == NS_HELP_TALK || $index == NS_CATEGORY_TALK );
}
# Get the talk namespace corresponding to the given index
$anyhit = false;
global $wgDisableFuzzySearch;
if(! $wgDisableFuzzySearch ){
- foreach( array(NS_MAIN, NS_WP, NS_USER, NS_IMAGE, NS_MEDIAWIKI) as $namespace){
+ foreach( array(NS_MAIN, NS_PROJECT, NS_USER, NS_IMAGE, NS_MEDIAWIKI) as $namespace){
$anyhit |= SearchEngine::doFuzzyTitleSearch( $this->rawText, $namespace );
}
}
return 'nstab-media';
case NS_SPECIAL:
return 'nstab-special';
- case NS_WP:
- case NS_WP_TALK:
+ case NS_PROJECT:
+ case NS_PROJECT_TALK:
return 'nstab-wp';
case NS_IMAGE:
case NS_IMAGE_TALK:
# First, see if we have a custom list setup in
# [[Wikipedia:Book sources]] or equivalent.
- $bstitle = Title::makeTitleSafe( NS_WIKIPEDIA, wfMsg( "booksources" ) );
+ $bstitle = Title::makeTitleSafe( NS_PROJECT, wfMsg( "booksources" ) );
$dbr =& wfGetDB( DB_SLAVE );
$bstext = $dbr->selectField( 'cur', 'cur_text', $bstitle->curCond(), $fname );
if( $bstext ) {
</form>");
$log = $dbr->selectField( "cur", "cur_text",
- array( 'cur_namespace' => NS_WIKIPEDIA, 'cur_title' => wfMsg("dellogpage") ) );
+ array( 'cur_namespace' => NS_PROJECT, 'cur_title' => wfMsg("dellogpage") ) );
if(preg_match("/^(.*".
preg_quote( ($namespace ? ($wgLang->getNsText($namespace) . ":") : "")
. str_replace("_", " ", $title), "/" ).".*)$/m", $log, $m)) {
NS_TALK => 'Talk',
NS_USER => 'User',
NS_USER_TALK => 'User_talk',
- NS_WIKIPEDIA => $wgMetaNamespace,
- NS_WIKIPEDIA_TALK => $wgMetaNamespace . '_talk',
+ NS_PROJECT => $wgMetaNamespace,
+ NS_PROJECT_TALK => $wgMetaNamespace . '_talk',
NS_IMAGE => 'Image',
NS_IMAGE_TALK => 'Image_talk',
NS_MEDIAWIKI => 'MediaWiki',
require_once( "LanguageUtf8.php" );
class LanguageFi extends LanguageUtf8 {
- /*function LanguageFi() {
- global $wgNamespaceNamesFi, $wgMetaNamespace;
- $wgNamespaceNamesFi[NS_WP_TALK] = 'Keskustelu_' . $this->convertGrammar( $wgMetaNamespace, 'elative' );
- }*/
function getNamespaces() {
global $wgNamespaceNamesFi;