http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73302
Revision: 73302
Author: svemir
Date: 2010-09-19 04:38:08 +0000 (Sun, 19 Sep 2010)
Log Message:
-----------
add missing comments
remove unused groupby code
update version number to match SF repository
Modified Paths:
--------------
trunk/extensions/SphinxSearch/SphinxSearch.php
trunk/extensions/SphinxSearch/SphinxSearch_body.php
Modified: trunk/extensions/SphinxSearch/SphinxSearch.php
===================================================================
--- trunk/extensions/SphinxSearch/SphinxSearch.php 2010-09-19 03:06:55 UTC
(rev 73301)
+++ trunk/extensions/SphinxSearch/SphinxSearch.php 2010-09-19 04:38:08 UTC
(rev 73302)
@@ -11,7 +11,7 @@
$wgExtensionCredits['specialpage'][] = array(
'path' => __FILE__,
- 'version' => '0.7.0',
+ 'version' => '0.7.1',
'name' => 'SphinxSearch',
'author' => array( 'Svemir Brkic', 'Paul Grinberg' ),
'email' => 'svemir at deveblog dot com, gri6507 at yahoo dot
com',
Modified: trunk/extensions/SphinxSearch/SphinxSearch_body.php
===================================================================
--- trunk/extensions/SphinxSearch/SphinxSearch_body.php 2010-09-19 03:06:55 UTC
(rev 73301)
+++ trunk/extensions/SphinxSearch/SphinxSearch_body.php 2010-09-19 04:38:08 UTC
(rev 73302)
@@ -124,6 +124,12 @@
return $categories;
}
+ /**
+ * $wgAjaxExportList callback - create a category filter sub-menu
+ *
+ * @param string $parent_id
+ * @return string
+ */
function ajaxGetCategoryChildren( $parent_id ) {
$title = Title::newFromID( $parent_id );
@@ -159,6 +165,11 @@
return $response;
}
+ /**
+ * Main execution function
+ *
+ * @param string $par Parameters passed to the page
+ */
function execute( $par ) {
global $wgRequest, $wgOut, $wgUser, $wgSphinxMatchAll,
$wgSphinxSearch_index_list;
@@ -226,6 +237,11 @@
$this->createNewSearchForm( $term );
}
+ /**
+ * If an exact title match can be found, jump straight ahead to it.
+ *
+ * @param string $term
+ */
function goResult( $term ) {
global $wgOut, $wgGoToEdit;
@@ -387,9 +403,6 @@
$cl->SetFilter( 'category', $this->exc_categories, true
);
}
- if ( isset( $wgSphinxSearch_groupby ) && isset(
$wgSphinxSearch_groupsort ) ) {
- $cl->SetGroupBy( $wgSphinxSearch_groupby,
SPH_GROUPBY_ATTR, $wgSphinxSearch_groupsort );
- }
$cl->SetSortMode( $wgSphinxSearch_sortmode,
$wgSphinxSearch_sortby );
$cl->SetLimits(
( $this->page - 1 ) * $wgSphinxSearch_matches,
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs