From: <pk...@us...> - 2010-02-23 23:29:39
|
Revision: 25648 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=25648&view=rev Author: pkdille Date: 2010-02-23 23:29:33 +0000 (Tue, 23 Feb 2010) Log Message: ----------- [QT] Rollback rejected proposition r24033 Modified Paths: -------------- branches/proposals/4.x/tiki-editpage.php Modified: branches/proposals/4.x/tiki-editpage.php =================================================================== --- branches/proposals/4.x/tiki-editpage.php 2010-02-23 23:28:47 UTC (rev 25647) +++ branches/proposals/4.x/tiki-editpage.php 2010-02-23 23:29:33 UTC (rev 25648) @@ -527,19 +527,19 @@ } } } -if ((isset($_REQUEST["template_name"]) || isset($_REQUEST["templateId"])) && !isset($_REQUEST['preview']) && !isset($_REQUEST['save'])) { +if ((isset($_REQUEST["template_name"]) || isset($_REQUEST["template_id"])) && !isset($_REQUEST['preview']) && !isset($_REQUEST['save'])) { global $templateslib; require_once 'lib/templates/templateslib.php'; $templateLang = isset( $_REQUEST['lang'] ) ? $_REQUEST['lang'] : null; - if (isset($_REQUEST["templateId"])) { - $templateId = $_REQUEST["templateId"]; + if (isset($_REQUEST["template_id"])) { + $template_id = $_REQUEST["template_id"]; } else { include_once ('lib/multilingual/multilinguallib.php'); - $templateId = $multilinguallib->getTemplateIDInLanguage('wiki', $_REQUEST["template_name"], $templateLang); + $template_id = $multilinguallib->getTemplateIDInLanguage('wiki', $_REQUEST["template_name"], $templateLang); } - $template_data = $templateslib->get_template($templateId, $templateLang); + $template_data = $templateslib->get_template($template_id, $templateLang); $_REQUEST["edit"] = $template_data["content"]."\n".$_REQUEST["edit"]; - $smarty->assign("templateId", $templateId); + $smarty->assign("templateId", $template_id); } if (isset($_REQUEST["categId"]) && $_REQUEST["categId"] > 0) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |