Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv28998/lib
Modified Files:
editpage.php
Log Message:
When creating 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.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** editpage.php 2001/02/14 05:22:49 1.13
--- editpage.php 2001/02/15 21:33:40 1.14
***************
*** 38,43 ****
}
} else {
! $textarea = sprintf(gettext ("Describe %s here."),
! htmlspecialchars($pagename));
unset($pagehash);
$pagehash["version"] = 0;
--- 38,49 ----
}
} else {
! if (preg_match("/^${WikiNameRegexp}\$/", $pagename))
! $newpage = $pagename;
! else
! $newpage = "[$pagename]";
!
! $textarea = htmlspecialchars(
! sprintf(gettext ("Describe %s here."), $newpage));
!
unset($pagehash);
$pagehash["version"] = 0;
|