~ubuntu-branches/ubuntu/saucy/mediawiki-extensions/saucy

« back to all changes in this revision

Viewing changes to extensions/NewestPages.php

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-05-04 15:13:35 UTC
  • mfrom: (0.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100504151335-54qeucg3ec108q28
Tags: 2.2
* Added Replaces:/Conflicts: to allow a proper upgrade.
Closes: #580066
* Fixed package descriptions.
Closes: #579667
* Patched mediawiki-extensions-fckeditor to make it work with
  php 5.3. The fix may not be perfect but at least it work.
  Not closing the bug (#579822) for now..

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
if ( ! defined( 'MEDIAWIKI' ) )
3
 
    die();
4
 
 
5
 
/**
6
 
 * Special page to show the last X pages added to the wiki
7
 
 * This doesn't use recent changes so the items don't expire
8
 
 *
9
 
 * @addtogroup Extensions
10
 
 * @author Rob Church <robchur@gmail.com>
11
 
 * @copyright © 2006 Rob Church
12
 
 * @licence GNU General Public Licence 2.0
13
 
 */
14
 
 
15
 
$wgExtensionCredits['specialpage'][] = array(
16
 
        'name'           => 'Newest Pages',
17
 
        'version'        => '1.7',
18
 
        'author'         => 'Rob Church',
19
 
        'url'            => 'http://www.mediawiki.org/wiki/Extension:Newest_Pages',
20
 
        'description'    => 'Shows the [[Special:Newestpages|last X pages]] added to the wiki',
21
 
        'descriptionmsg' => 'newestpages-desc',
22
 
);
23
 
 
24
 
$wgNewestPagesLimit = 50;
25
 
 
26
 
$dir = dirname(__FILE__) . '/';
27
 
$wgExtensionMessagesFiles['NewestPages'] = $dir . 'NewestPages.i18n.php';
28
 
$wgExtensionAliasesFiles['NewestPages'] = $dir . 'NewestPages.alias.php';
29
 
$wgAutoloadClasses['NewestPages'] = $dir . 'NewestPages.page.php';
30
 
$wgSpecialPages['Newestpages'] = 'NewestPages';