r44732 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44731‎ | r44732 | r44733 >
Date:20:38, 17 December 2008
Author:bigsmoke
Status:deferred
Tags:
Comment:
In SemanticGallery extension, removed commented code.

The commented code was originally meant to turn it into a tag extension before I realized that adding it as a result format would be cleaner.
Modified paths:
  • /trunk/extensions/SemanticGallery/SemanticGallery.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticGallery/SemanticGallery.php
@@ -19,10 +19,6 @@
2020 'descriptionmsg' => 'semanticgallery-desc',
2121 );
2222
23 - //$wgHooks['LanguageGetMagic'][] = 'semanticGallery_Magic';
24 -
25 - //$wgParser->setFunctionHook('semantic-gallery', 'semanticGallery_Render');
26 -
2723 require_once('SG_ResultPrinter.php');
2824
2925 // global variable introduced in SMW 1.2.2
@@ -33,19 +29,6 @@
3430 SMWQueryProcessor::$formats['gallery'] = 'SemanticGallery_ResultPrinter';
3531 }
3632
37 -/*
38 -function semanticGallery_Magic( &$magicWords, $langCode )
39 -{
40 - $magicWords['semantic-gallery'] = array(0, 'semantic-gallery');
4133
42 - return true;
43 -}
44 -
45 -function semanticGallery_Render($input, $args, $parser)
46 -{
47 - //return $gallery->toHTML();
48 -}
49 -*/
50 -
5134 # vim:set tabstop=4 noexpandtab shiftwidth=4:
5235 ?>

Status & tagging log