r53684 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53683‎ | r53684 | r53685 >
Date:17:53, 23 July 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added handling for new 'Creates pages with form' special property; added 'SMW_sorttable' JS file to form headers
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_Utils.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_Utils.inc
@@ -14,9 +14,11 @@
1515 $sf_props = $sfgContLang->getPropertyLabels();
1616 SMWPropertyValue::registerProperty('_SF_DF', '__spf', $sf_props[SF_SP_HAS_DEFAULT_FORM], true);
1717 SMWPropertyValue::registerProperty('_SF_AF', '__spf', $sf_props[SF_SP_HAS_ALTERNATE_FORM], true);
 18+ SMWPropertyValue::registerProperty('_SF_CP', '__spf', $sf_props[SF_SP_CREATES_PAGES_WITH_FORM], true);
1819 // also initialize hardcoded English values, if it's a non-English-language wiki
1920 SMWPropertyValue::registerProperty('_SF_DF_BACKUP', '__spf', 'Has default form', true);
2021 SMWPropertyValue::registerProperty('_SF_AF_BACKUP', '__spf', 'Has alternate form', true);
 22+ SMWPropertyValue::registerProperty('_SF_CP_BACKUP', '__spf', 'Creates pages with form', true);
2123
2224 return true;
2325 }
@@ -136,6 +138,7 @@
137139 $wgOut->addScript('<script type="text/javascript" src="' . $sfgScriptPath . '/libs/SF_yui_autocompletion.js"></script>' . "\n");
138140 $wgOut->addScript('<script type="text/javascript" src="' . $sfgScriptPath . '/libs/floatbox.js"></script>' . "\n");
139141 $wgOut->addScript('<script type="text/javascript" src="' . $smwgScriptPath . '/skins/SMW_tooltip.js"></script>' . "\n");
 142+ $wgOut->addScript('<script type="text/javascript" src="' . $smwgScriptPath . '/skins/SMW_sorttable.js"></script>' . "\n");
140143 if ($wgFCKEditorDir)
141144 $wgOut->addScript('<script type="text/javascript" src="' . "$wgScriptPath/$wgFCKEditorDir" . '/fckeditor.js"></script>' . "\n");
142145 $wgOut->addMeta('robots','noindex,nofollow');

Status & tagging log