本文整理汇总了PHP中wfDebug函数的典型用法代码示例。如果您正苦于以下问题:PHP wfDebug函数的具体用法?PHP wfDebug怎么用?PHP wfDebug使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wfDebug函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: setupMicroID
function setupMicroID()
{
global $wgOut, $wgRequest, $wgHooks;
$wgHooks['UserToggles'][] = 'MicroIDUserToggle';
$action = $wgRequest->getText('action', 'view');
if ($action == 'view') {
$title = $wgRequest->getText('title');
if (!isset($title) || strlen($title) == 0) {
# If there's no title, and Cache404 is in use, check using its stuff
if (defined('CACHE404_VERSION')) {
if ($_SERVER['REDIRECT_STATUS'] == 404) {
$url = getRedirectUrl($_SERVER);
if (isset($url)) {
$title = cacheUrlToTitle($url);
}
}
} else {
$title = wfMsg('mainpage');
}
}
$nt = Title::newFromText($title);
// If the page being viewed is a user page...
if ($nt && $nt->getNamespace() == NS_USER && strpos($nt->getText(), '/') === false) {
// If the user qualifies...
wfDebug("MicroID: on User page " . $nt->getText() . "\n");
$user = User::newFromName($nt->getText());
if ($user && $user->getID() != 0 && $user->getEmail() && $user->isEmailConfirmed() && $user->getOption('microid')) {
wfDebug("MicroID: on User page " . $nt->getText() . "\n");
$wgOut->addMeta('microid', MakeMicroID($user->getEmail(), $nt->getFullURL()));
}
}
}
}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:33,代码来源:MicroID.php
示例2: debug
function debug($msg)
{
wfDebug("{$msg}\n");
if ($this->debugLog) {
$this->logToFile($msg, $this->debugLog);
}
}
开发者ID:GodelDesign,项目名称:Godel,代码行数:7,代码来源:recompressTracked.php
示例3: __construct
/**
* Constructor
* @param $titleObj Title object that the diff is associated with
* @param $old Integer old ID we want to show and diff with.
* @param $new String either 'prev' or 'next'.
* @param $rcid Integer ??? FIXME (default 0)
* @param $refreshCache boolean If set, refreshes the diff cache
* @param $unhide boolean If set, allow viewing deleted revs
*/
function __construct($titleObj = null, $old = 0, $new = 0, $rcid = 0, $refreshCache = false, $unhide = false)
{
if ($titleObj) {
$this->mTitle = $titleObj;
} else {
global $wgTitle;
$this->mTitle = $wgTitle;
// @TODO: get rid of this
}
wfDebug("DifferenceEngine old '{$old}' new '{$new}' rcid '{$rcid}'\n");
if ('prev' === $new) {
# Show diff between revision $old and the previous one.
# Get previous one from DB.
$this->mNewid = intval($old);
$this->mOldid = $this->mTitle->getPreviousRevisionID($this->mNewid);
} elseif ('next' === $new) {
# Show diff between revision $old and the next one.
# Get next one from DB.
$this->mOldid = intval($old);
$this->mNewid = $this->mTitle->getNextRevisionID($this->mOldid);
if (false === $this->mNewid) {
# if no result, NewId points to the newest old revision. The only newer
# revision is cur, which is "0".
$this->mNewid = 0;
}
} else {
$this->mOldid = intval($old);
$this->mNewid = intval($new);
wfRunHooks('NewDifferenceEngine', array(&$titleObj, &$this->mOldid, &$this->mNewid, $old, $new));
}
$this->mRcidMarkPatrolled = intval($rcid);
# force it to be an integer
$this->mRefreshCache = $refreshCache;
$this->unhide = $unhide;
}
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:44,代码来源:DifferenceEngine.php
示例4: autoload
/**
* autoload - take a class name and attempt to load it
*
* @param string $className Name of class we're looking for.
* @return bool Returning false is important on failure as
* it allows Zend to try and look in other registered autoloaders
* as well.
*/
static function autoload($className)
{
global $wgAutoloadClasses, $wgAutoloadLocalClasses;
if (isset($wgAutoloadLocalClasses[$className])) {
$filename = $wgAutoloadLocalClasses[$className];
} elseif (isset($wgAutoloadClasses[$className])) {
$filename = $wgAutoloadClasses[$className];
} else {
# Try a different capitalisation
# The case can sometimes be wrong when unserializing PHP 4 objects
$filename = false;
$lowerClass = strtolower($className);
foreach ($wgAutoloadLocalClasses as $class2 => $file2) {
if (strtolower($class2) == $lowerClass) {
$filename = $file2;
}
}
if (!$filename) {
if (function_exists('wfDebug')) {
wfDebug("Class {$className} not found; skipped loading");
}
# Give up
return false;
}
}
# Make an absolute path, this improves performance by avoiding some stat calls
if (substr($filename, 0, 1) != '/' && substr($filename, 1, 1) != ':') {
global $IP;
$filename = "{$IP}/{$filename}";
}
require $filename;
return true;
}
开发者ID:evanfarrar,项目名称:opensprints.org,代码行数:41,代码来源:AutoLoader.php
示例5: profileOut
function profileOut($functionname)
{
$memory = memory_get_usage();
$time = $this->getTime();
global $wgDebugProfiling, $wgDebugFunctionEntry;
if ($wgDebugFunctionEntry && function_exists('wfDebug')) {
wfDebug(str_repeat(' ', count($this->mWorkStack) - 1) . 'Exiting ' . $functionname . "\n");
}
$bit = array_pop($this->mWorkStack);
if (!$bit) {
wfDebug("Profiling error, !\$bit: {$functionname}\n");
} else {
//if ($wgDebugProfiling) {
if ($functionname == 'close') {
$message = "Profile section ended by close(): {$bit[0]}\n";
wfDebug($message);
$this->mStack[] = array($message, 0, 0, 0);
} elseif ($bit[0] != $functionname) {
$message = "Profiling error: in({$bit[0]}), out({$functionname})\n";
wfDebug($message);
$this->mStack[] = array($message, 0, 0, 0);
}
//}
$bit[] = $time;
$bit[] = $memory;
$this->mStack[] = $bit;
}
}
开发者ID:BackupTheBerlios,项目名称:openzaurus-svn,代码行数:28,代码来源:Profiling.php
示例6: disambiguation_templates
/**
* Return a clause with the list of disambiguation templates.
* This function was copied verbatim from specials/SpecialDisambiguations.php
*/
function disambiguation_templates( $dbr ) {
$dMsgText = wfMsgForContent('disambiguationspage');
$linkBatch = new LinkBatch;
# If the text can be treated as a title, use it verbatim.
# Otherwise, pull the titles from the links table
$dp = Title::newFromText($dMsgText);
if( $dp ) {
if($dp->getNamespace() != NS_TEMPLATE) {
# FIXME we assume the disambiguation message is a template but
# the page can potentially be from another namespace :/
wfDebug("Mediawiki:disambiguationspage message does not refer to a template!\n");
}
$linkBatch->addObj( $dp );
} else {
# Get all the templates linked from the Mediawiki:Disambiguationspage
$disPageObj = Title::makeTitleSafe( NS_MEDIAWIKI, 'disambiguationspage' );
$res = $dbr->select(
array('pagelinks', 'page'),
'pl_title',
array('page_id = pl_from', 'pl_namespace' => NS_TEMPLATE,
'page_namespace' => $disPageObj->getNamespace(), 'page_title' => $disPageObj->getDBkey()),
__METHOD__ );
foreach ( $res as $row ) {
$linkBatch->addObj( Title::makeTitle( NS_TEMPLATE, $row->pl_title ));
}
}
return $linkBatch->constructSet( 'tl', $dbr );
}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:35,代码来源:SpecialPagesWithoutScans.php
示例7: jsonTagRender
/**
* Default parser tag renderer
*/
public static function jsonTagRender($input, array $args, Parser $parser, PPFrame $frame)
{
global $wgJsonData;
$wgJsonData = new JsonData($frame->title);
$json = $input;
$goodschema = true;
try {
$schematext = $wgJsonData->getSchemaText();
} catch (JsonDataException $e) {
$schematext = $wgJsonData->readJsonFromPredefined('openschema');
wfDebug(__METHOD__ . ": " . htmlspecialchars($e->getMessage()) . "\n");
$goodschema = false;
}
$schematitletext = $wgJsonData->getSchemaTitleText();
if ($goodschema && !is_null($schematitletext)) {
// Register dependency in templatelinks, using technique (and a
// little code) from http://www.mediawiki.org/wiki/Manual:Tag_extensions
$schematitle = Title::newFromText($schematitletext);
$schemarev = Revision::newFromTitle($schematitle);
$schemaid = $schemarev ? $schemarev->getPage() : 0;
$parser->mOutput->addTemplate($schematitle, $schemaid, $schemarev ? $schemarev->getId() : 0);
}
$data = json_decode($json, true);
$schema = json_decode($schematext, true);
$rootjson = new JsonTreeRef($data);
$rootjson->attachSchema($schema);
$markup = JsonDataMarkup::getMarkup($rootjson, 0);
return $parser->recursiveTagParse($markup, $frame);
}
开发者ID:robla,项目名称:mediawiki-jsondata,代码行数:32,代码来源:JsonData.hooks.php
示例8: renderTagPage
/**
* Hook: ParserBeforeStrip
* @param $parser Parser
* @param $text
* @param $state
* @return bool
*/
public static function renderTagPage($parser, &$text, $state)
{
$title = $parser->getTitle();
if (strpos($text, '<translate>') !== false) {
try {
$parse = TranslatablePage::newFromText($parser->getTitle(), $text)->getParse();
$text = $parse->getTranslationPageText(null);
} catch (TPException $e) {
// Show ugly preview without processed <translate> tags
wfDebug('TPException caught; expected');
}
}
// Set display title
$page = TranslatablePage::isTranslationPage($title);
if (!$page) {
return true;
}
list(, $code) = TranslateUtils::figureMessage($title->getText());
$name = $page->getPageDisplayTitle($code);
if ($name) {
$name = $parser->recursivePreprocess($name);
$parser->getOutput()->setDisplayTitle($name);
}
// Disable edit section links
$parser->getOptions()->setEditSection(false);
return true;
}
开发者ID:HuijiWiki,项目名称:mediawiki-extensions-Translate,代码行数:34,代码来源:PageTranslationHooks.php
示例9: purge
static function purge($urlArr)
{
$caller = self::getPurgeCaller();
wfDebug("Purging backtrace: " . wfGetAllCallers(false) . "\n");
// Filter urls into buckets based on service backend
$buckets = array_reduce($urlArr, function ($carry, $item) use($caller) {
global $wgPurgeVignetteUsingSurrogateKeys;
wfDebug("Purging URL {$item} from {$caller} via Celery\n");
if (isset($wgPurgeVignetteUsingSurrogateKeys) && VignetteRequest::isVignetteUrl($item)) {
$carry['vignette'][] = $item;
} elseif (strstr($item, 'MercuryApi') !== false) {
$carry['mercury'][] = $item;
$carry['mediawiki'][] = $item;
// TODO: we can remove this when mercury is only using internal cache
} else {
$carry['mediawiki'][] = $item;
}
return $carry;
}, array('mediawiki' => [], 'vignette' => [], 'mercury' => []));
if (empty(CeleryPurge::$buckets)) {
CeleryPurge::$buckets = $buckets;
} else {
CeleryPurge::$buckets = array_merge_recursive(CeleryPurge::$buckets, $buckets);
}
}
开发者ID:Tjorriemorrie,项目名称:app,代码行数:25,代码来源:CeleryPurge.class.php
示例10: open
/** Open an SQLite database and return a resource handle to it
* NOTE: only $dbName is used, the other parameters are irrelevant for SQLite databases
*/
function open($server, $user, $pass, $dbName)
{
$this->mConn = false;
if ($dbName) {
$file = $this->mDatabaseFile;
try {
if ($this->mFlags & DBO_PERSISTENT) {
$this->mConn = new PDO("sqlite:{$file}", $user, $pass, array(PDO::ATTR_PERSISTENT => true));
} else {
$this->mConn = new PDO("sqlite:{$file}", $user, $pass);
}
} catch (PDOException $e) {
$err = $e->getMessage();
}
if ($this->mConn === false) {
wfDebug("DB connection error: {$err}\n");
if (!$this->mFailFunction) {
throw new DBConnectionError($this, $err);
} else {
return false;
}
}
$this->mOpened = $this->mConn;
# set error codes only, don't raise exceptions
$this->mConn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
}
return $this->mConn;
}
开发者ID:josephdye,项目名称:wikireader,代码行数:31,代码来源:DatabaseSqlite.php
示例11: addOlds
/**
* Add the old versions of the image to the batch
*/
function addOlds()
{
$archiveBase = 'archive';
$this->olds = array();
$this->oldCount = 0;
$result = $this->db->select('oldimage', array('oi_archive_name', 'oi_deleted'), array('oi_name' => $this->oldName), __METHOD__);
while ($row = $this->db->fetchObject($result)) {
$oldName = $row->oi_archive_name;
$bits = explode('!', $oldName, 2);
if (count($bits) != 2) {
wfDebug("Invalid old file name: {$oldName} \n");
continue;
}
list($timestamp, $filename) = $bits;
if ($this->oldName != $filename) {
wfDebug("Invalid old file name: {$oldName} \n");
continue;
}
$this->oldCount++;
// Do we want to add those to oldCount?
if ($row->oi_deleted & File::DELETED_FILE) {
continue;
}
$this->olds[] = array("{$archiveBase}/{$this->oldHash}{$oldName}", "{$archiveBase}/{$this->newHash}{$timestamp}!{$this->newName}");
}
$this->db->freeResult($result);
}
开发者ID:robksawyer,项目名称:LocalS3Repo,代码行数:30,代码来源:LocalS3FileMoveBatch.php
示例12: DifferenceEngine
/**
* Constructor
* @param $titleObj Title object that the diff is associated with
* @param $old Integer: old ID we want to show and diff with.
* @param $new String: either 'prev' or 'next'.
* @param $rcid Integer: ??? FIXME (default 0)
* @param $refreshCache boolean If set, refreshes the diff cache
*/
function DifferenceEngine($titleObj = null, $old = 0, $new = 0, $rcid = 0, $refreshCache = false)
{
$this->mTitle = $titleObj;
wfDebug("DifferenceEngine old '{$old}' new '{$new}' rcid '{$rcid}'\n");
if ('prev' === $new) {
# Show diff between revision $old and the previous one.
# Get previous one from DB.
#
$this->mNewid = intval($old);
$this->mOldid = $this->mTitle->getPreviousRevisionID($this->mNewid);
} elseif ('next' === $new) {
# Show diff between revision $old and the previous one.
# Get previous one from DB.
#
$this->mOldid = intval($old);
$this->mNewid = $this->mTitle->getNextRevisionID($this->mOldid);
if (false === $this->mNewid) {
# if no result, NewId points to the newest old revision. The only newer
# revision is cur, which is "0".
$this->mNewid = 0;
}
} else {
$this->mOldid = intval($old);
$this->mNewid = intval($new);
}
$this->mRcidMarkPatrolled = intval($rcid);
# force it to be an integer
$this->mRefreshCache = $refreshCache;
}
开发者ID:BackupTheBerlios,项目名称:shoutwiki-svn,代码行数:37,代码来源:DifferenceEngine.php
示例13: cleanupDeletedBatch
/**
* Delete files in the deleted directory if they are not referenced in the
* filearchive table. This needs to be done in the repo because it needs to
* interleave database locks with file operations, which is potentially a
* remote operation.
* @return FileRepoStatus
*/
function cleanupDeletedBatch($storageKeys)
{
$root = $this->getZonePath('deleted');
$dbw = $this->getMasterDB();
$status = $this->newGood();
$storageKeys = array_unique($storageKeys);
foreach ($storageKeys as $key) {
$hashPath = $this->getDeletedHashPath($key);
$path = "{$root}/{$hashPath}{$key}";
$dbw->begin();
$inuse = $dbw->selectField('filearchive', '1', array('fa_storage_group' => 'deleted', 'fa_storage_key' => $key), __METHOD__, array('FOR UPDATE'));
if (!$inuse) {
wfDebug(__METHOD__ . ": deleting {$key}\n");
if (!@unlink($path)) {
$status->error('undelete-cleanup-error', $path);
$status->failCount++;
}
} else {
wfDebug(__METHOD__ . ": {$key} still in use\n");
$status->successCount++;
}
$dbw->commit();
}
return $status;
}
开发者ID:BackupTheBerlios,项目名称:shoutwiki-svn,代码行数:32,代码来源:LocalRepo.php
示例14: sleep
private function sleep()
{
wfProfileIn(__METHOD__);
wfDebug(sprintf("%s: sleeping for %d ms\n", __CLASS__, $this->mDelay));
usleep($this->mDelay * 1000);
wfProfileOut(__METHOD__);
}
开发者ID:yusufchang,项目名称:app,代码行数:7,代码来源:BackendDelay.class.php
示例15: renderToolTip
function renderToolTip($input, $argv, &$parser)
{
$text = 'see tooltip';
$xoffset = 0;
$yoffset = 0;
foreach ($argv as $key => $value) {
switch ($key) {
case 'text':
$text = $value;
break;
case 'x':
$xoffset = intval($value);
break;
case 'y':
$yoffset = intval($value);
break;
default:
wfDebug(__METHOD__ . ": Requested '{$key} ==> {$value}'\n");
break;
}
}
$output = '';
if ($input != '') {
$tooltipid = uniqid('tooltipid');
$parentid = uniqid('parentid');
$output .= "<span id='{$tooltipid}' class='xstooltip'>" . $parser->unstrip($parser->recursiveTagParse($input), $parser->mStripState) . "</span>";
$output .= "<span id='{$parentid}' class='xstooltip_body' onmouseover=\"xstooltip_show('{$tooltipid}', '{$parentid}', {$xoffset}, {$yoffset});\" onmouseout=\"xstooltip_hide('{$tooltipid}');\">" . $parser->unstrip($parser->recursiveTagParse($text), $parser->mStripState) . "</span>";
}
return $output;
}
开发者ID:Tjorriemorrie,项目名称:app,代码行数:30,代码来源:Tooltip.php
示例16: loadLanguage
/**
* Load time units localized for a particular language. Helper function for getUnits.
*
* @param string $code The language to return the list in
* @return array an associative array of time unit codes and localized time units
*/
private static function loadLanguage($code)
{
if (!isset(self::$cache[$code])) {
/* Load override for wrong or missing entries in cldr */
$override = __DIR__ . '/LocalNames/' . self::getOverrideFileName($code);
if (Language::isValidBuiltInCode($code) && file_exists($override)) {
$timeUnits = false;
require $override;
if (is_array($timeUnits)) {
self::$cache[$code] = $timeUnits;
}
}
$filename = __DIR__ . '/CldrNames/' . self::getFileName($code);
if (Language::isValidBuiltInCode($code) && file_exists($filename)) {
$timeUnits = false;
require $filename;
if (is_array($timeUnits)) {
if (isset(self::$cache[$code])) {
// Add to existing list of localized time units
self::$cache[$code] = self::$cache[$code] + $timeUnits;
} else {
// No list exists, so create it
self::$cache[$code] = $timeUnits;
}
}
} else {
wfDebug(__METHOD__ . ": Unable to load time units for {$filename}\n");
}
if (!isset(self::$cache[$code])) {
self::$cache[$code] = array();
}
}
return self::$cache[$code];
}
开发者ID:Plover-Y,项目名称:mediawiki-extensions-cldr,代码行数:40,代码来源:TimeUnits.body.php
示例17: cleanupDeletedBatch
/**
* Delete files in the deleted directory if they are not referenced in the
* filearchive table. This needs to be done in the repo because it needs to
* interleave database locks with file operations, which is potentially a
* remote operation.
*
* @param $storageKeys array
*
* @return FileRepoStatus
*/
function cleanupDeletedBatch($storageKeys)
{
$backend = $this->backend;
// convenience
$root = $this->getZonePath('deleted');
$dbw = $this->getMasterDB();
$status = $this->newGood();
$storageKeys = array_unique($storageKeys);
foreach ($storageKeys as $key) {
$hashPath = $this->getDeletedHashPath($key);
$path = "{$root}/{$hashPath}{$key}";
$dbw->begin();
// Check for usage in deleted/hidden files and pre-emptively
// lock the key to avoid any future use until we are finished.
$deleted = $this->deletedFileHasKey($key, 'lock');
$hidden = $this->hiddenFileHasKey($key, 'lock');
if (!$deleted && !$hidden) {
// not in use now
wfDebug(__METHOD__ . ": deleting {$key}\n");
$op = array('op' => 'delete', 'src' => $path);
if (!$backend->doOperation($op)->isOK()) {
$status->error('undelete-cleanup-error', $path);
$status->failCount++;
}
} else {
wfDebug(__METHOD__ . ": {$key} still in use\n");
$status->successCount++;
}
$dbw->commit();
}
return $status;
}
开发者ID:Tjorriemorrie,项目名称:app,代码行数:42,代码来源:LocalRepo.php
示例18: getGenderOf
/**
* Returns the gender for given username.
* @param string $username or User: username
* @param string $caller the calling method
* @return String
*/
public function getGenderOf( $username, $caller = '' ) {
global $wgUser;
if ( $username instanceof User ) {
$username = $username->getName();
}
$username = self::normalizeUsername( $username );
if ( !isset( $this->cache[$username] ) ) {
if ( $this->misses >= $this->missLimit && $wgUser->getName() !== $username ) {
if ( $this->misses === $this->missLimit ) {
$this->misses++;
wfDebug( __METHOD__ . ": too many misses, returning default onwards\n" );
}
return $this->getDefault();
} else {
$this->misses++;
$this->doQuery( $username, $caller );
}
}
/* Undefined if there is a valid username which for some reason doesn't
* exist in the database.
*/
return isset( $this->cache[$username] ) ? $this->cache[$username] : $this->getDefault();
}
开发者ID:nahoj,项目名称:mediawiki_ynh,代码行数:33,代码来源:GenderCache.php
示例19: loadAndLazyInit
static function loadAndLazyInit()
{
wfDebug(__METHOD__ . ": reading site_stats from slave\n");
$row = self::doLoad(wfGetDB(DB_SLAVE));
if (!self::isSane($row)) {
// Might have just been initialized during this request? Underflow?
wfDebug(__METHOD__ . ": site_stats damaged or missing on slave\n");
$row = self::doLoad(wfGetDB(DB_MASTER));
}
if (!self::isSane($row)) {
// Normally the site_stats table is initialized at install time.
// Some manual construction scenarios may leave the table empty or
// broken, however, for instance when importing from a dump into a
// clean schema with mwdumper.
wfDebug(__METHOD__ . ": initializing damaged or missing site_stats\n");
global $IP;
require_once "{$IP}/maintenance/initStats.inc";
ob_start();
wfInitStats();
ob_end_clean();
$row = self::doLoad(wfGetDB(DB_MASTER));
}
if (!self::isSane($row)) {
wfDebug(__METHOD__ . ": site_stats persistently nonsensical o_O\n");
}
return $row;
}
开发者ID:amjadtbssm,项目名称:website,代码行数:27,代码来源:SiteStats.php
示例20: parseQuery
function parseQuery($filteredText, $fulltext)
{
global $wgContLang;
$lc = SearchEngine::legalSearchChars();
$searchon = '';
$this->searchTerms = array();
# FIXME: This doesn't handle parenthetical expressions.
if (preg_match_all('/([-+<>~]?)(([' . $lc . ']+)(\\*?)|"[^"]*")/', $filteredText, $m, PREG_SET_ORDER)) {
foreach ($m as $terms) {
if ($searchon !== '') {
$searchon .= ' ';
}
if ($this->strictMatching && $terms[1] == '') {
$terms[1] = '+';
}
$searchon .= $terms[1] . $wgContLang->stripForSearch($terms[2]);
if (!empty($terms[3])) {
$regexp = preg_quote($terms[3], '/');
if ($terms[4]) {
$regexp .= "[0-9A-Za-z_]+";
}
} else {
$regexp = preg_quote(str_replace('"', '', $terms[2]), '/');
}
$this->searchTerms[] = $regexp;
}
wfDebug("Would search with '{$searchon}'\n");
wfDebug("Match with /\\b" . implode('\\b|\\b', $this->searchTerms) . "\\b/\n");
} else {
wfDebug("Can't understand search query '{$this->filteredText}'\n");
}
$searchon = preg_replace('/(\\s+)/', '&', $searchon);
$searchon = $this->db->strencode($searchon);
return $searchon;
}
开发者ID:puring0815,项目名称:OpenKore,代码行数:35,代码来源:SearchTsearch2.php
注:本文中的wfDebug函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论