Skip to content

Commit aaeb78b

Browse files
committed
[plugin] change mysql_* function to DB object method
1 parent 9c6855e commit aaeb78b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

xoops_trust_path/modules/xpwiki/class/attach.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ function XpWikiAttachPages(& $xpwiki, $page='',$age=NULL,$isbn=true,$max=50,$sta
12991299
$query = "SELECT DISTINCT p.pgid FROM ".$this->xpwiki->db->prefix($this->root->mydirname."_pginfo")." p INNER JOIN ".$this->xpwiki->db->prefix($this->root->mydirname."_attach")." a ON p.pgid=a.pgid{$where}";
13001300
$result = $this->xpwiki->db->query($query);
13011301

1302-
$this->count = $result ? mysql_num_rows($result) : 0;
1302+
$this->count = $result ? $this->xpwiki->db->getRowsNum($result) : 0;
13031303

13041304
$this->max = $max;
13051305
$this->start = $start;

xoops_trust_path/modules/xpwiki/plugin/dbsync.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ function plain_db_init()
665665
$id = $this->func->get_pgid_by_name($page, FALSE, TRUE);
666666
$query = "SELECT plain FROM `".$this->xpwiki->db->prefix($this->root->mydirname."_plain")."` WHERE `pgid` = ".$id.";";
667667
$result = $this->xpwiki->db->query($query);
668-
if ($result && mysql_num_rows($result))
668+
if ($result && $this->xpwiki->db->getRowsNum($result))
669669
{
670670
list($text) = $this->xpwiki->db->fetchRow( $result );
671671
if ($text && !$this->root->post['plain_all'])

xoops_trust_path/modules/xpwiki/plugin/exifshowcase.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function plugin_exifshowcase_body($args,$page)
214214

215215
$query = "SELECT name FROM `".$this->xpwiki->db->prefix($this->root->mydirname . "_attach")."` WHERE {$where}{$order};";
216216
$result = $this->xpwiki->db->query($query);
217-
while($_row = mysql_fetch_row($result))
217+
while($_row = $this->xpwiki->db->fetchRow($result))
218218
{
219219
$files[$_row[0]] = $this->cont['UPLOAD_DIR'].$this->func->encode($page).'_'.$this->func->encode($_row[0]);
220220
}

0 commit comments

Comments
 (0)