|
From: <var...@us...> - 2021-08-11 13:50:25
|
Revision: 10490
http://sourceforge.net/p/phpwiki/code/10490
Author: vargenau
Date: 2021-08-11 13:50:24 +0000 (Wed, 11 Aug 2021)
Log Message:
-----------
function _parse_searchwords is public; add braces
Modified Paths:
--------------
trunk/lib/WikiDB/backend/file.php
Modified: trunk/lib/WikiDB/backend/file.php
===================================================================
--- trunk/lib/WikiDB/backend/file.php 2021-08-11 12:19:00 UTC (rev 10489)
+++ trunk/lib/WikiDB/backend/file.php 2021-08-11 13:50:24 UTC (rev 10490)
@@ -58,8 +58,9 @@
function __construct($dbparam)
{
$this->data_dir = $dbparam['directory'];
- if (file_exists($this->data_dir) and is_file($this->data_dir))
+ if (file_exists($this->data_dir) and is_file($this->data_dir)) {
unlink($this->data_dir);
+ }
if (is_dir($this->data_dir) == false) {
mkdir($this->data_dir, 0755);
}
@@ -87,10 +88,11 @@
// common file load / save functions:
protected function _pagename2filename($type, $pagename, $version)
{
- if ($version == 0)
+ if ($version == 0) {
return $this->_dir_names[$type] . '/' . urlencode($pagename);
- else
+ } else {
return $this->_dir_names[$type] . '/' . urlencode($pagename) . '--' . $version;
+ }
}
protected function _loadPage($type, $pagename, $version, $set_pagename = true)
@@ -391,8 +393,9 @@
function get_versiondata($pagename, $version, $want_content = false)
{
$vd = $this->_loadVersionData($pagename, $version);
- if ($vd == NULL)
+ if ($vd == NULL) {
return false;
+ }
return $vd;
}
@@ -723,7 +726,7 @@
return true;
}
- protected function _parse_searchwords($search)
+ function _parse_searchwords($search)
{
$search = strtolower(trim($search));
if (!$search)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|