From: Geoffrey T. D. <da...@us...> - 2001-02-15 21:24:19
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv27660/lib Modified Files: Tag: release-1_2-branch editpage.php Log Message: When creating the default contents for non-existant pages, put [brackets] around page names which aren't BumpyWords. Index: editpage.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/editpage.php,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -r1.8 -r1.8.2.1 *** editpage.php 2001/01/01 23:13:32 1.8 --- editpage.php 2001/02/15 21:25:02 1.8.2.1 *************** *** 48,53 **** } } else { ! $textarea = sprintf(gettext ("Describe %s here."), ! htmlspecialchars($pagename)); unset($pagehash); $pagehash["version"] = 0; --- 48,59 ---- } } else { ! if (preg_match("/^${WikiNameRegexp}\$/", $pagename)) ! $newpage = $pagename; ! else ! $newpage = "[$pagename]"; ! ! $textarea = htmlspecialchars( ! sprintf(gettext ("Describe %s here."), $newpage)); ! unset($pagehash); $pagehash["version"] = 0; |