From: <var...@us...> - 2021-06-17 17:17:38
|
Revision: 10301 http://sourceforge.net/p/phpwiki/code/10301 Author: vargenau Date: 2021-06-17 17:17:35 +0000 (Thu, 17 Jun 2021) Log Message: ----------- wikiblog is the default value Modified Paths: -------------- trunk/lib/plugin/BlogArchives.php trunk/lib/plugin/BlogJournal.php trunk/lib/plugin/WikiBlog.php Modified: trunk/lib/plugin/BlogArchives.php =================================================================== --- trunk/lib/plugin/BlogArchives.php 2021-06-17 17:09:18 UTC (rev 10300) +++ trunk/lib/plugin/BlogArchives.php 2021-06-17 17:17:35 UTC (rev 10301) @@ -93,7 +93,7 @@ // unset($pagelist->_columns['pagename']); if (!empty($args['month'])) { - $prefix = $parent . $this->blogPrefix('wikiblog') . '/' . $args['month']; + $prefix = $parent . $this->blogPrefix() . '/' . $args['month']; $pages = $dbi->titleSearch(new TextSearchQuery("^" . $prefix, true, 'posix')); $html = HTML::ul(); while ($page = $pages->next()) { @@ -109,7 +109,7 @@ return $html; } - $blogs = $this->findBlogs($dbi, $args['user'], 'wikiblog'); + $blogs = $this->findBlogs($dbi, $args['user']); if ($blogs) { if (!$basepage) $basepage = _("BlogArchives"); $html = HTML::ul(); Modified: trunk/lib/plugin/BlogJournal.php =================================================================== --- trunk/lib/plugin/BlogJournal.php 2021-06-17 17:09:18 UTC (rev 10300) +++ trunk/lib/plugin/BlogJournal.php 2021-06-17 17:17:35 UTC (rev 10301) @@ -84,7 +84,7 @@ } $parent = (empty($args['user']) ? '' : $args['user'] . '/'); - $prefix = $base = $parent . $this->blogPrefix('wikiblog'); + $prefix = $base = $parent . $this->blogPrefix(); if ($args['month']) $prefix .= ('/' . $args['month']); $pages = $dbi->titleSearch(new TextSearchQuery("^" . $prefix . '/', true, 'posix')); Modified: trunk/lib/plugin/WikiBlog.php =================================================================== --- trunk/lib/plugin/WikiBlog.php 2021-06-17 17:09:18 UTC (rev 10300) +++ trunk/lib/plugin/WikiBlog.php 2021-06-17 17:17:35 UTC (rev 10301) @@ -104,7 +104,7 @@ $request->setArg("edit", false); if ($request->isPost() and !empty($blog['save'])) { - $this->add($request, $blog, 'wikiblog'); // noreturn + $this->add($request, $blog); // noreturn } //TODO: preview This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |