r31802 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31801‎ | r31802 | r31803 >
Date:17:31, 11 March 2008
Author:yaron
Status:old
Tags:
Comment:
Added initialization of some variables
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_AddData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_AddData.php
@@ -46,6 +46,11 @@
4747 function printAddForm($form_name, $target_name, $alt_forms) {
4848 global $wgOut, $wgRequest, $sfgScriptPath, $sfgFormPrinter;
4949
 50+ // initialize some variables
 51+ $page_title = NULL;
 52+ $target_title = NULL;
 53+ $page_name_formula = NULL;
 54+
5055 // get contents of form and target page - if there's only one,
5156 // it might be a target with only alternate forms
5257 if ($form_name == '') {

Status & tagging log