http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65075

Revision: 65075
Author:   siebrand
Date:     2010-04-15 18:44:16 +0000 (Thu, 15 Apr 2010)

Log Message:
-----------
Rename 'setup' file to have the same name as the parent directory.

Added Paths:
-----------
    trunk/extensions/AdvancedSearch/AdvancedSearch.php

Removed Paths:
-------------
    trunk/extensions/AdvancedSearch/AdvancedSearch.setup.php

Copied: trunk/extensions/AdvancedSearch/AdvancedSearch.php (from rev 65072, 
trunk/extensions/AdvancedSearch/AdvancedSearch.setup.php)
===================================================================
--- trunk/extensions/AdvancedSearch/AdvancedSearch.php                          
(rev 0)
+++ trunk/extensions/AdvancedSearch/AdvancedSearch.php  2010-04-15 18:44:16 UTC 
(rev 65075)
@@ -0,0 +1,61 @@
+<?php
+/**
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * @author Roan Kattouw <roan.katt...@home.nl>
+ * @copyright Copyright (C) 2008 Roan Kattouw
+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
+ *
+ * An extension that allows for searching inside categories
+ * Written for MixesDB <http://mixesdb.com> by Roan Kattouw 
<roan.katt...@home.nl>
+ * For information how to install and use this extension, see the README file.
+ *
+ */
+# Alert the user that this is not a valid entry point to MediaWiki if they try 
to access the extension file directly.
+if ( !defined( 'MEDIAWIKI' ) ) {
+       echo <<<EOT
+To install the AdvancedSearch extension, put the following line in 
LocalSettings.php:
+require_once( "\$IP/extensions/AdvancedSearch/AdvancedSearch.setup.php" );
+EOT;
+       exit( 1 );
+}
+
+$wgExtensionCredits['specialpage'][] = array(
+       'path' => __FILE__,
+       'name' => 'AdvancedSearch',
+       'author' => 'Roan Kattouw',
+       'url' => 'http://www.mediawiki.org/wiki/Extension:AdvancedSearch',
+       'version' => '1.0',
+       'descriptionmsg' => 'advancedsearch-desc',
+);
+
+$dir = dirname( __FILE__ ) . '/';
+$wgExtensionMessagesFiles['AdvancedSearch'] = $dir . 'AdvancedSearch.i18n.php';
+$wgAutoloadClasses['AdvancedSearch'] = $dir . 'AdvancedSearch.body.php';
+$wgAutoloadClasses['AdvancedSearchPager'] = $dir . 'AdvancedSearchPager.php';
+$wgAutoloadClasses['AdvancedSearchCategoryIntersector'] = $dir . 
'AdvancedSearchCategoryIntersector.php';
+
+$wgSpecialPages['AdvancedSearch'] = 'AdvancedSearch';
+$wgHooks['LanguageGetSpecialPageAliases'][] = 
'AdvancedSearchLocalizedPageName';
+$wgHooks['LoadExtensionSchemaUpdates'][] = 'AdvancedSearchSchemaUpdate';
+$wgHooks['LinksUpdate'][] = 'AdvancedSearchCategoryIntersector::LinksUpdate';
+$wgHooks['ArticleDeleteComplete'][] = 
'AdvancedSearchCategoryIntersector::ArticleDeleteComplete';
+
+function AdvancedSearchLocalizedPageName( &$specialPageArray, $code ) {
+       wfLoadExtensionMessages( 'AdvancedSearch' );
+       $text = wfMsg( 'advancedsearch-pagename' );
+
+       $title = Title::newFromText( $text );
+       $specialPageArray['AdvancedSearch'][] = $title->getDBkey();
+       return true;
+}
+
+function AdvancedSearchSchemaUpdate() {
+       global $wgExtNewTables;
+       $dir = dirname( __FILE__ ) . '/';
+       $wgExtNewTables[] = array( 'categorysearch', $dir . 
'categorysearch.sql' );
+       return true;
+}

Deleted: trunk/extensions/AdvancedSearch/AdvancedSearch.setup.php
===================================================================
--- trunk/extensions/AdvancedSearch/AdvancedSearch.setup.php    2010-04-15 
18:43:25 UTC (rev 65074)
+++ trunk/extensions/AdvancedSearch/AdvancedSearch.setup.php    2010-04-15 
18:44:16 UTC (rev 65075)
@@ -1,61 +0,0 @@
-<?php
-/**
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * @author Roan Kattouw <roan.katt...@home.nl>
- * @copyright Copyright (C) 2008 Roan Kattouw
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
- *
- * An extension that allows for searching inside categories
- * Written for MixesDB <http://mixesdb.com> by Roan Kattouw 
<roan.katt...@home.nl>
- * For information how to install and use this extension, see the README file.
- *
- */
-# Alert the user that this is not a valid entry point to MediaWiki if they try 
to access the extension file directly.
-if ( !defined( 'MEDIAWIKI' ) ) {
-       echo <<<EOT
-To install the AdvancedSearch extension, put the following line in 
LocalSettings.php:
-require_once( "\$IP/extensions/AdvancedSearch/AdvancedSearch.setup.php" );
-EOT;
-       exit( 1 );
-}
-
-$wgExtensionCredits['specialpage'][] = array(
-       'path' => __FILE__,
-       'name' => 'AdvancedSearch',
-       'author' => 'Roan Kattouw',
-       'url' => 'http://www.mediawiki.org/wiki/Extension:AdvancedSearch',
-       'version' => '1.0',
-       'descriptionmsg' => 'advancedsearch-desc',
-);
-
-$dir = dirname( __FILE__ ) . '/';
-$wgExtensionMessagesFiles['AdvancedSearch'] = $dir . 'AdvancedSearch.i18n.php';
-$wgAutoloadClasses['AdvancedSearch'] = $dir . 'AdvancedSearch.body.php';
-$wgAutoloadClasses['AdvancedSearchPager'] = $dir . 'AdvancedSearchPager.php';
-$wgAutoloadClasses['AdvancedSearchCategoryIntersector'] = $dir . 
'AdvancedSearchCategoryIntersector.php';
-
-$wgSpecialPages['AdvancedSearch'] = 'AdvancedSearch';
-$wgHooks['LanguageGetSpecialPageAliases'][] = 
'AdvancedSearchLocalizedPageName';
-$wgHooks['LoadExtensionSchemaUpdates'][] = 'AdvancedSearchSchemaUpdate';
-$wgHooks['LinksUpdate'][] = 'AdvancedSearchCategoryIntersector::LinksUpdate';
-$wgHooks['ArticleDeleteComplete'][] = 
'AdvancedSearchCategoryIntersector::ArticleDeleteComplete';
-
-function AdvancedSearchLocalizedPageName( &$specialPageArray, $code ) {
-       wfLoadExtensionMessages( 'AdvancedSearch' );
-       $text = wfMsg( 'advancedsearch-pagename' );
-
-       $title = Title::newFromText( $text );
-       $specialPageArray['AdvancedSearch'][] = $title->getDBkey();
-       return true;
-}
-
-function AdvancedSearchSchemaUpdate() {
-       global $wgExtNewTables;
-       $dir = dirname( __FILE__ ) . '/';
-       $wgExtNewTables[] = array( 'categorysearch', $dir . 
'categorysearch.sql' );
-       return true;
-}



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to