Skip to content

Commit 3fd7b9a

Browse files
author
Skrol29
committed
delete deprecated tags
1 parent aad24aa commit 3fd7b9a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tbs_class.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
// Check PHP version
1818
if (version_compare(PHP_VERSION,'5.0')<0) echo '<br><b>TinyButStrong Error</b> (PHP Version Check) : Your PHP version is '.PHP_VERSION.' while TinyButStrong needs PHP version 5.0 or higher. You should try with TinyButStrong Edition for PHP 4.';
19-
/* COMPAT#1 */
2019

2120
// Render flags
2221
define('TBS_NOTHING', 0);
@@ -220,10 +219,10 @@ public function DataOpen(&$Query,$QryPrms=false) {
220219
case 0: // Array
221220
if (($this->SubType===1) && (is_string($Query))) $this->SubType = 2;
222221
if ($this->SubType===0) {
223-
$this->RecSet = &$this->SrcId; /* COMPAT#2 */
222+
$this->RecSet = &$this->SrcId;
224223
} elseif ($this->SubType===1) {
225224
if (is_array($Query)) {
226-
$this->RecSet = &$Query; /* COMPAT#3 */
225+
$this->RecSet = &$Query;
227226
} else {
228227
$this->DataAlert('type \''.gettype($Query).'\' not supported for the Query Parameter going with \'array\' Source Type.');
229228
}
@@ -247,7 +246,7 @@ public function DataOpen(&$Query,$QryPrms=false) {
247246
}
248247
} else {
249248
if (isset($this->TBS->VarRef[$Item0])) {
250-
$Var = &$this->TBS->VarRef[$Item0]; /* COMPAT#4 */
249+
$Var = &$this->TBS->VarRef[$Item0];
251250
$i = 1;
252251
} else {
253252
$i = $this->DataAlert('invalid query \''.$Query.'\' because VarRef item \''.$Item0.'\' is not found.');
@@ -608,7 +607,7 @@ private function _DataFetchOn($obj) {
608607
$obj->CurrRec = $this->SrcId->tbsdb_fetch($this->RecSet,$obj->RecNum+1);
609608
break;
610609
case 7: // PostgreSQL
611-
$obj->CurrRec = pg_fetch_assoc($this->RecSet); /* COMPAT#5 */
610+
$obj->CurrRec = pg_fetch_assoc($this->RecSet);
612611
break;
613612
case 8: // SQLite
614613
$obj->CurrRec = sqlite_fetch_array($this->RecSet,SQLITE_ASSOC);
@@ -5248,14 +5247,12 @@ static function f_Xml_FindTagStart(&$Txt,$Tag,$Opening,$PosBeg,$Forward,$Case=tr
52485247
do {
52495248
if ($Forward) $p = strpos($Txt,$x,$p+1); else $p = strrpos(substr($Txt,0,$p+1),$x);
52505249
if ($p===false) return false;
5251-
/* COMPAT#6 */
52525250
$z = substr($Txt,$p+$xl,1);
52535251
} while ( ($z!==' ') && ($z!=="\r") && ($z!=="\n") && ($z!=='>') && ($z!=='/') && ($Tag!=='/') && ($Tag!=='') );
52545252
} else {
52555253
do {
52565254
if ($Forward) $p = stripos($Txt,$x,$p+1); else $p = strripos(substr($Txt,0,$p+1),$x);
52575255
if ($p===false) return false;
5258-
/* COMPAT#7 */
52595256
$z = substr($Txt,$p+$xl,1);
52605257
} while ( ($z!==' ') && ($z!=="\r") && ($z!=="\n") && ($z!=='>') && ($z!=='/') && ($Tag!=='/') && ($Tag!=='') );
52615258
}

0 commit comments

Comments
 (0)