Test Failed
Pull Request — master (#592)
by Lucio
10:17
created
htdocs/class/database/databasefactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
     {
47 47
         static $instance;
48 48
         if (!isset($instance)) {
49
-            if (file_exists($file = XOOPS_ROOT_PATH . '/class/database/' . XOOPS_DB_TYPE . 'database.php')) {
49
+            if (file_exists($file = XOOPS_ROOT_PATH.'/class/database/'.XOOPS_DB_TYPE.'database.php')) {
50 50
                 require_once $file;
51 51
 
52 52
                 if (!defined('XOOPS_DB_PROXY')) {
53
-                    $class = 'Xoops' . ucfirst(XOOPS_DB_TYPE) . 'DatabaseSafe';
53
+                    $class = 'Xoops'.ucfirst(XOOPS_DB_TYPE).'DatabaseSafe';
54 54
                 } else {
55
-                    $class = 'Xoops' . ucfirst(XOOPS_DB_TYPE) . 'DatabaseProxy';
55
+                    $class = 'Xoops'.ucfirst(XOOPS_DB_TYPE).'DatabaseProxy';
56 56
                 }
57 57
 
58 58
                 $xoopsPreload = XoopsPreload::getInstance();
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                     trigger_error('notrace:Unable to connect to database', E_USER_ERROR);
66 66
                 }
67 67
             } else {
68
-                trigger_error('notrace:Failed to load database of type: ' . XOOPS_DB_TYPE . ' in file: ' . __FILE__ . ' at line ' . __LINE__, E_USER_WARNING);
68
+                trigger_error('notrace:Failed to load database of type: '.XOOPS_DB_TYPE.' in file: '.__FILE__.' at line '.__LINE__, E_USER_WARNING);
69 69
             }
70 70
         }
71 71
 
@@ -84,17 +84,17 @@  discard block
 block discarded – undo
84 84
     {
85 85
         static $database;
86 86
         if (!isset($database)) {
87
-            if (file_exists($file = XOOPS_ROOT_PATH . '/class/database/' . XOOPS_DB_TYPE . 'database.php')) {
87
+            if (file_exists($file = XOOPS_ROOT_PATH.'/class/database/'.XOOPS_DB_TYPE.'database.php')) {
88 88
                 include_once $file;
89 89
                 if (!defined('XOOPS_DB_PROXY')) {
90
-                    $class = 'Xoops' . ucfirst(XOOPS_DB_TYPE) . 'DatabaseSafe';
90
+                    $class = 'Xoops'.ucfirst(XOOPS_DB_TYPE).'DatabaseSafe';
91 91
                 } else {
92
-                    $class = 'Xoops' . ucfirst(XOOPS_DB_TYPE) . 'DatabaseProxy';
92
+                    $class = 'Xoops'.ucfirst(XOOPS_DB_TYPE).'DatabaseProxy';
93 93
                 }
94 94
                 unset($database);
95 95
                 $database = new $class();
96 96
             } else {
97
-                trigger_error('notrace:Failed to load database of type: ' . XOOPS_DB_TYPE . ' in file: ' . __FILE__ . ' at line ' . __LINE__, E_USER_WARNING);
97
+                trigger_error('notrace:Failed to load database of type: '.XOOPS_DB_TYPE.' in file: '.__FILE__.' at line '.__LINE__, E_USER_WARNING);
98 98
             }
99 99
         }
100 100
 
Please login to merge, or discard this patch.
htdocs/class/database/database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     public function prefix($tablename = '')
102 102
     {
103 103
         if ($tablename != '') {
104
-            return $this->prefix . '_' . $tablename;
104
+            return $this->prefix.'_'.$tablename;
105 105
         } else {
106 106
             return $this->prefix;
107 107
         }
Please login to merge, or discard this patch.
htdocs/class/database/mysqldatabase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  */
20 20
 defined('XOOPS_ROOT_PATH') || die('Restricted access');
21 21
 
22
-include_once XOOPS_ROOT_PATH . '/class/database/database.php';
22
+include_once XOOPS_ROOT_PATH.'/class/database/database.php';
23 23
 
24 24
 /**
25 25
  * connection to a mysql database using MySQLi extension
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $dbname = '';
62 62
         }
63 63
         if (XOOPS_DB_PCONNECT == 1) {
64
-            $this->conn = new mysqli('p:' . XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS, $dbname);
64
+            $this->conn = new mysqli('p:'.XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS, $dbname);
65 65
         } else {
66 66
             $this->conn = new mysqli(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS, $dbname);
67 67
         }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
             if (empty($start)) {
272 272
                 $start = 0;
273 273
             }
274
-            $sql = $sql . ' LIMIT ' . (int)$start . ', ' . (int)$limit;
274
+            $sql = $sql.' LIMIT '.(int)$start.', '.(int)$limit;
275 275
         }
276 276
         $this->logger->startTime('query_time');
277 277
         $result = mysqli_query($this->conn, $sql);
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     public function queryFromFile($file)
313 313
     {
314 314
         if (false !== ($fp = fopen($file, 'r'))) {
315
-            include_once XOOPS_ROOT_PATH . '/class/database/sqlutility.php';
315
+            include_once XOOPS_ROOT_PATH.'/class/database/sqlutility.php';
316 316
             $sql_queries = trim(fread($fp, filesize($file)));
317 317
             SqlUtility::splitMySqlFile($pieces, $sql_queries);
318 318
             foreach ($pieces as $query) {
Please login to merge, or discard this patch.
htdocs/class/file/file.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
             $this->info();
372 372
         }
373 373
         if (isset($this->info['extension'])) {
374
-            return basename($this->name, '.' . $this->info['extension']);
374
+            return basename($this->name, '.'.$this->info['extension']);
375 375
         } elseif ($this->name) {
376 376
             return $this->name;
377 377
         }
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
      */
429 429
     public function pwd()
430 430
     {
431
-        return $this->folder->slashTerm($this->folder->pwd()) . $this->name;
431
+        return $this->folder->slashTerm($this->folder->pwd()).$this->name;
432 432
     }
433 433
 
434 434
     /**
Please login to merge, or discard this patch.
htdocs/class/file/xoopsfile.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
         switch ($name) {
63 63
             case 'folder':
64 64
                 if (!class_exists('XoopsFolderHandler')) {
65
-                    if (file_exists($folder = __DIR__ . '/folder.php')) {
65
+                    if (file_exists($folder = __DIR__.'/folder.php')) {
66 66
                         include $folder;
67 67
                     } else {
68
-                        trigger_error('Require Item : ' . str_replace(XOOPS_ROOT_PATH, '', $folder) . ' In File ' . __FILE__ . ' at Line ' . __LINE__, E_USER_WARNING);
68
+                        trigger_error('Require Item : '.str_replace(XOOPS_ROOT_PATH, '', $folder).' In File '.__FILE__.' at Line '.__LINE__, E_USER_WARNING);
69 69
 
70 70
                         return false;
71 71
                     }
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
             case 'file':
75 75
             default:
76 76
                 if (!class_exists('XoopsFileHandler')) {
77
-                    if (file_exists($file = __DIR__ . '/file.php')) {
77
+                    if (file_exists($file = __DIR__.'/file.php')) {
78 78
                         include $file;
79 79
                     } else {
80
-                        trigger_error('Require File : ' . str_replace(XOOPS_ROOT_PATH, '', $file) . ' In File ' . __FILE__ . ' at Line ' . __LINE__, E_USER_WARNING);
80
+                        trigger_error('Require File : '.str_replace(XOOPS_ROOT_PATH, '', $file).' In File '.__FILE__.' at Line '.__LINE__, E_USER_WARNING);
81 81
 
82 82
                         return false;
83 83
                     }
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $handler = null;
103 103
         XoopsFile::load($name);
104
-        $class = 'Xoops' . ucfirst($name) . 'Handler';
104
+        $class = 'Xoops'.ucfirst($name).'Handler';
105 105
         if (class_exists($class)) {
106 106
             $handler = new $class($path, $create, $mode);
107 107
         } else {
108
-            trigger_error('Class ' . $class . ' not exist in File ' . __FILE__ . ' at Line ' . __LINE__, E_USER_WARNING);
108
+            trigger_error('Class '.$class.' not exist in File '.__FILE__.' at Line '.__LINE__, E_USER_WARNING);
109 109
         }
110 110
 
111 111
         return $handler;
Please login to merge, or discard this patch.
htdocs/class/file/folder.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -680,10 +680,10 @@  discard block
 block discarded – undo
680 680
             $options = array();
681 681
         }
682 682
         $options = array_merge(array(
683
-                                   'to'   => $to,
684
-                                   'from' => $this->path,
685
-                                   'mode' => $this->mode,
686
-                                   'skip' => array()), $options);
683
+                                    'to'   => $to,
684
+                                    'from' => $this->path,
685
+                                    'mode' => $this->mode,
686
+                                    'skip' => array()), $options);
687 687
 
688 688
         $fromDir = $options['from'];
689 689
         $toDir   = $options['to'];
@@ -702,9 +702,9 @@  discard block
 block discarded – undo
702 702
             return false;
703 703
         }
704 704
         $exceptions = array_merge(array(
705
-                                      '.',
706
-                                      '..',
707
-                                      '.svn'), $options['skip']);
705
+                                        '.',
706
+                                        '..',
707
+                                        '.svn'), $options['skip']);
708 708
         $handle     = opendir($fromDir);
709 709
         if ($handle) {
710 710
             while (false !== ($item = readdir($handle))) {
@@ -761,10 +761,10 @@  discard block
 block discarded – undo
761 761
             $options = (array)$options;
762 762
         }
763 763
         $options = array_merge(array(
764
-                                   'to'   => $to,
765
-                                   'from' => $this->path,
766
-                                   'mode' => $this->mode,
767
-                                   'skip' => array()), $options);
764
+                                    'to'   => $to,
765
+                                    'from' => $this->path,
766
+                                    'mode' => $this->mode,
767
+                                    'skip' => array()), $options);
768 768
         if ($this->copy($options)) {
769 769
             if ($this->delete($options['from'])) {
770 770
                 return $this->cd($options['to']);
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     public function __construct($path = false, $create = true, $mode = false)
118 118
     {
119 119
         if (empty($path)) {
120
-            $path = XOOPS_VAR_PATH . '/caches/xoops_cache';
120
+            $path = XOOPS_VAR_PATH.'/caches/xoops_cache';
121 121
         }
122 122
         if ($mode) {
123 123
             $this->mode = intval($mode, 8);
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
             return $path;
363 363
         }
364 364
 
365
-        return $path . XoopsFolderHandler::correctSlashFor($path);
365
+        return $path.XoopsFolderHandler::correctSlashFor($path);
366 366
     }
367 367
 
368 368
     /**
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
      */
378 378
     public function addPathElement($path, $element)
379 379
     {
380
-        return $this->slashTerm($path) . $element;
380
+        return $this->slashTerm($path).$element;
381 381
     }
382 382
 
383 383
     /**
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
     public function inXoopsPath($path = '')
392 392
     {
393 393
         $dir    = substr($this->slashTerm(XOOPS_ROOT_PATH), 0, -1);
394
-        $newdir = $dir . $path;
394
+        $newdir = $dir.$path;
395 395
 
396 396
         return $this->inPath($newdir);
397 397
     }
@@ -410,9 +410,9 @@  discard block
 block discarded – undo
410 410
         $dir     = $this->slashTerm($path);
411 411
         $current = $this->slashTerm($this->pwd());
412 412
         if (!$reverse) {
413
-            $return = preg_match('/^(.*)' . preg_quote($dir, '/') . '(.*)/', $current);
413
+            $return = preg_match('/^(.*)'.preg_quote($dir, '/').'(.*)/', $current);
414 414
         } else {
415
-            $return = preg_match('/^(.*)' . preg_quote($current, '/') . '(.*)/', $dir);
415
+            $return = preg_match('/^(.*)'.preg_quote($current, '/').'(.*)/', $dir);
416 416
         }
417 417
         if ($return == 1) {
418 418
             return true;
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
         while (count($this->directories)) {
493 493
             $dir = array_pop($this->directories);
494 494
             $this->_tree($dir, $hidden);
495
-            $directories[] =  $dir;
495
+            $directories[] = $dir;
496 496
         }
497 497
         if ($type === null) {
498 498
             return array(
@@ -522,13 +522,13 @@  discard block
 block discarded – undo
522 522
             while (false !== ($item = readdir($dirHandle))) {
523 523
                 $found = false;
524 524
                 if (($hidden === true && $item !== '.' && $item !== '..') || ($hidden === false && !preg_match('/^\\.(.*)$/', $item))) {
525
-                    $found = $path . '/' . $item;
525
+                    $found = $path.'/'.$item;
526 526
                 }
527 527
                 if ($found !== false) {
528 528
                     if (is_dir($found)) {
529
-                        $this->directories[] =  $found;
529
+                        $this->directories[] = $found;
530 530
                     } else {
531
-                        $this->files[] =  $found;
531
+                        $this->files[] = $found;
532 532
                     }
533 533
                 }
534 534
             }
@@ -599,8 +599,8 @@  discard block
 block discarded – undo
599 599
                             if ($entry === '.' || $entry === '..') {
600 600
                                 continue;
601 601
                             }
602
-                            $add = $stack[$i] . $entry;
603
-                            if (is_dir($stack[$i] . $entry)) {
602
+                            $add = $stack[$i].$entry;
603
+                            if (is_dir($stack[$i].$entry)) {
604 604
                                 $add = $this->slashTerm($add);
605 605
                             }
606 606
                             $stack[] = $add;
@@ -627,9 +627,9 @@  discard block
 block discarded – undo
627 627
     {
628 628
         $path = $this->slashTerm($path);
629 629
         if (is_dir($path) === true) {
630
-            $files        = glob($path . '*', GLOB_NOSORT);
631
-            $normal_files = glob($path . '*');
632
-            $hidden_files = glob($path . '\.?*');
630
+            $files        = glob($path.'*', GLOB_NOSORT);
631
+            $normal_files = glob($path.'*');
632
+            $hidden_files = glob($path.'\.?*');
633 633
             $files        = array_merge($normal_files, $hidden_files);
634 634
             if (is_array($files)) {
635 635
                 foreach ($files as $file) {
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
                                       '.',
706 706
                                       '..',
707 707
                                       '.svn'), $options['skip']);
708
-        $handle     = opendir($fromDir);
708
+        $handle = opendir($fromDir);
709 709
         if ($handle) {
710 710
             while (false !== ($item = readdir($handle))) {
711 711
                 if (!in_array($item, $exceptions)) {
Please login to merge, or discard this patch.
htdocs/class/xoopscomments.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 
19 19
 defined('XOOPS_ROOT_PATH') || exit('Restricted access');
20 20
 
21
-include_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
22
-require_once XOOPS_ROOT_PATH . '/kernel/object.php';
23
-include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/comment.php';
21
+include_once XOOPS_ROOT_PATH.'/class/xoopstree.php';
22
+require_once XOOPS_ROOT_PATH.'/kernel/object.php';
23
+include_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/comment.php';
24 24
 
25 25
 $GLOBALS['xoopsLogger']->addDeprecated("'/class/xoopscommments.php' is deprecated since XOOPS 2.5.4, please use '/kernel/comment.php' instead.");
26 26
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function load($id)
81 81
     {
82 82
         $id  = (int)$id;
83
-        $sql = 'SELECT * FROM ' . $this->ctable . ' WHERE comment_id=' . $id;
83
+        $sql = 'SELECT * FROM '.$this->ctable.' WHERE comment_id='.$id;
84 84
         $arr = $this->db->fetchArray($this->db->query($sql));
85 85
         $this->assignVars($arr);
86 86
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $isnew = false;
102 102
         if (empty($comment_id)) {
103 103
             $isnew      = true;
104
-            $comment_id = $this->db->genId($this->ctable . '_comment_id_seq');
104
+            $comment_id = $this->db->genId($this->ctable.'_comment_id_seq');
105 105
             $sql        = sprintf("INSERT INTO %s (comment_id, pid, item_id, date, user_id, ip, subject, comment, nohtml, nosmiley, noxcode, icon) VALUES (%u, %u, %u, %u, %u, '%s', '%s', '%s', %u, %u, %u, '%s')", $this->ctable, $comment_id, $pid, $item_id, time(), $user_id, $ip, $subject, $comment, $nohtml, $nosmiley, $noxcode, $icon);
106 106
         } else {
107 107
             $sql = sprintf("UPDATE %s SET subject = '%s', comment = '%s', nohtml = %u, nosmiley = %u, noxcode = %u, icon = '%s'  WHERE comment_id = %u", $this->ctable, $subject, $comment, $nohtml, $nosmiley, $noxcode, $icon, $comment_id);
@@ -196,13 +196,13 @@  discard block
 block discarded – undo
196 196
             $where_query = substr($where_query, 0, -4);
197 197
         }
198 198
         if (!$asobject) {
199
-            $sql    = 'SELECT comment_id FROM ' . $this->ctable . "$where_query ORDER BY $orderby";
199
+            $sql    = 'SELECT comment_id FROM '.$this->ctable."$where_query ORDER BY $orderby";
200 200
             $result = $this->db->query($sql, $limit, $start);
201 201
             while (false !== ($myrow = $this->db->fetchArray($result))) {
202 202
                 $ret[] = $myrow['comment_id'];
203 203
             }
204 204
         } else {
205
-            $sql    = 'SELECT * FROM ' . $this->ctable . '' . $where_query . " ORDER BY $orderby";
205
+            $sql    = 'SELECT * FROM '.$this->ctable.''.$where_query." ORDER BY $orderby";
206 206
             $result = $this->db->query($sql, $limit, $start);
207 207
             while (false !== ($myrow = $this->db->fetchArray($result))) {
208 208
                 $ret[] = new XoopsComments($this->ctable, $myrow);
@@ -223,32 +223,32 @@  discard block
 block discarded – undo
223 223
     public function printNavBar($item_id, $mode = 'flat', $order = 1)
224 224
     {
225 225
         global $xoopsConfig, $xoopsUser;
226
-        echo "<form method='get' action='" . $_SERVER['PHP_SELF'] . "'><table width='100%' border='0' cellspacing='1' cellpadding='2'><tr><td class='bg1' align='center'><select name='mode'><option value='nocomments'";
226
+        echo "<form method='get' action='".$_SERVER['PHP_SELF']."'><table width='100%' border='0' cellspacing='1' cellpadding='2'><tr><td class='bg1' align='center'><select name='mode'><option value='nocomments'";
227 227
         if ($mode === 'nocomments') {
228 228
             echo " selected";
229 229
         }
230
-        echo '>' . _NOCOMMENTS . "</option><option value='flat'";
230
+        echo '>'._NOCOMMENTS."</option><option value='flat'";
231 231
         if ($mode === 'flat') {
232 232
             echo " selected";
233 233
         }
234
-        echo '>' . _FLAT . "</option><option value='thread'";
234
+        echo '>'._FLAT."</option><option value='thread'";
235 235
         if ($mode === 'thread' || $mode == '') {
236 236
             echo " selected";
237 237
         }
238
-        echo '>' . _THREADED . "</option></select><select name='order'><option value='0'";
238
+        echo '>'._THREADED."</option></select><select name='order'><option value='0'";
239 239
         if ($order != 1) {
240 240
             echo " selected";
241 241
         }
242
-        echo '>' . _OLDESTFIRST . "</option><option value='1'";
242
+        echo '>'._OLDESTFIRST."</option><option value='1'";
243 243
         if ($order == 1) {
244 244
             echo " selected";
245 245
         }
246
-        echo '>' . _NEWESTFIRST . "</option></select><input type='hidden' name='item_id' value='" . (int)$item_id . "' /><input type='submit' value='" . _CM_REFRESH . "' />";
246
+        echo '>'._NEWESTFIRST."</option></select><input type='hidden' name='item_id' value='".(int)$item_id."' /><input type='submit' value='"._CM_REFRESH."' />";
247 247
         if ($xoopsConfig['anonpost'] == 1 || $xoopsUser) {
248 248
             if ($mode !== 'flat' || $mode !== 'nocomments' || $mode !== 'thread') {
249 249
                 $mode = 'flat';
250 250
             }
251
-            echo "&nbsp;<input type='button' onclick='location=\"newcomment.php?item_id=" . (int)$item_id . '&amp;order=' . (int)$order . '&amp;mode=' . $mode . "\"' value='" . _CM_POSTCOMMENT . "' />";
251
+            echo "&nbsp;<input type='button' onclick='location=\"newcomment.php?item_id=".(int)$item_id.'&amp;order='.(int)$order.'&amp;mode='.$mode."\"' value='"._CM_POSTCOMMENT."' />";
252 252
         }
253 253
         echo '</td></tr></table></form>';
254 254
     }
@@ -286,29 +286,29 @@  discard block
 block discarded – undo
286 286
             $poster = 0;
287 287
         }
288 288
         if ($this->getVar('icon') != null && $this->getVar('icon') != '') {
289
-            $subject_image = "<a name='" . $this->getVar('comment_id') . "' id='" . $this->getVar('comment_id') . "'></a><img src='" . XOOPS_URL . '/images/subject/' . $this->getVar('icon') . "' alt='' />";
289
+            $subject_image = "<a name='".$this->getVar('comment_id')."' id='".$this->getVar('comment_id')."'></a><img src='".XOOPS_URL.'/images/subject/'.$this->getVar('icon')."' alt='' />";
290 290
         } else {
291
-            $subject_image = "<a name='" . $this->getVar('comment_id') . "' id='" . $this->getVar('comment_id') . "'></a><img src='" . XOOPS_URL . "/images/icons/no_posticon.gif' alt='' />";
291
+            $subject_image = "<a name='".$this->getVar('comment_id')."' id='".$this->getVar('comment_id')."'></a><img src='".XOOPS_URL."/images/icons/no_posticon.gif' alt='' />";
292 292
         }
293 293
         if ($adminview) {
294
-            $ip_image = "<img src='" . XOOPS_URL . "/images/icons/ip.gif' alt='" . $this->getVar('ip') . "' />";
294
+            $ip_image = "<img src='".XOOPS_URL."/images/icons/ip.gif' alt='".$this->getVar('ip')."' />";
295 295
         } else {
296
-            $ip_image = "<img src='" . XOOPS_URL . "/images/icons/ip.gif' alt='' />";
296
+            $ip_image = "<img src='".XOOPS_URL."/images/icons/ip.gif' alt='' />";
297 297
         }
298 298
         if ($adminview || ($xoopsUser && $this->getVar('user_id') == $xoopsUser->getVar('uid'))) {
299
-            $edit_image = "<a href='editcomment.php?comment_id=" . $this->getVar('comment_id') . '&amp;mode=' . $mode . '&amp;order=' . (int)$order . "'><img src='" . XOOPS_URL . "/images/icons/edit.gif' alt='" . _EDIT . "' /></a>";
299
+            $edit_image = "<a href='editcomment.php?comment_id=".$this->getVar('comment_id').'&amp;mode='.$mode.'&amp;order='.(int)$order."'><img src='".XOOPS_URL."/images/icons/edit.gif' alt='"._EDIT."' /></a>";
300 300
         }
301 301
         if ($xoopsConfig['anonpost'] || $xoopsUser) {
302
-            $reply_image = "<a href='replycomment.php?comment_id=" . $this->getVar('comment_id') . '&amp;mode=' . $mode . '&amp;order=' . (int)$order . "'><img src='" . XOOPS_URL . "/images/icons/reply.gif' alt='" . _REPLY . "' /></a>";
302
+            $reply_image = "<a href='replycomment.php?comment_id=".$this->getVar('comment_id').'&amp;mode='.$mode.'&amp;order='.(int)$order."'><img src='".XOOPS_URL."/images/icons/reply.gif' alt='"._REPLY."' /></a>";
303 303
         }
304 304
         if ($adminview) {
305
-            $delete_image = "<a href='deletecomment.php?comment_id=" . $this->getVar('comment_id') . '&amp;mode=' . $mode . '&amp;order=' . (int)$order . "'><img src='" . XOOPS_URL . "/images/icons/delete.gif' alt='" . _DELETE . "' /></a>";
305
+            $delete_image = "<a href='deletecomment.php?comment_id=".$this->getVar('comment_id').'&amp;mode='.$mode.'&amp;order='.(int)$order."'><img src='".XOOPS_URL."/images/icons/delete.gif' alt='"._DELETE."' /></a>";
306 306
         }
307 307
 
308 308
         if ($poster) {
309 309
             $text = $this->getVar('comment');
310 310
             if ($poster->getVar('attachsig')) {
311
-                $text .= '<p><br>_________________<br>' . $poster->user_sig() . '</p>';
311
+                $text .= '<p><br>_________________<br>'.$poster->user_sig().'</p>';
312 312
             }
313 313
             $reg_date = _CM_JOINED;
314 314
             $reg_date .= formatTimestamp($poster->getVar('user_regdate'), 's');
@@ -318,42 +318,42 @@  discard block
 block discarded – undo
318 318
             $user_from .= $poster->getVar('user_from');
319 319
             $rank = $poster->rank();
320 320
             if ($rank['image'] != '') {
321
-                $rank['image'] = "<img src='" . XOOPS_UPLOAD_URL . '/' . $rank['image'] . "' alt='' />";
321
+                $rank['image'] = "<img src='".XOOPS_UPLOAD_URL.'/'.$rank['image']."' alt='' />";
322 322
             }
323
-            $avatar_image = "<img src='" . XOOPS_UPLOAD_URL . '/' . $poster->getVar('user_avatar') . "' alt='' />";
323
+            $avatar_image = "<img src='".XOOPS_UPLOAD_URL.'/'.$poster->getVar('user_avatar')."' alt='' />";
324 324
             $online_image = '';
325 325
             if ($poster->isOnline()) {
326
-                $online_image = "<span style='color:#ee0000;font-weight:bold;'>" . _CM_ONLINE . '</span>';
326
+                $online_image = "<span style='color:#ee0000;font-weight:bold;'>"._CM_ONLINE.'</span>';
327 327
             }
328
-            $profile_image = "<a href='" . XOOPS_URL . '/userinfo.php?uid=' . $poster->getVar('uid') . "'><img src='" . XOOPS_URL . "/images/icons/profile.gif' alt='" . _PROFILE . "' /></a>";
328
+            $profile_image = "<a href='".XOOPS_URL.'/userinfo.php?uid='.$poster->getVar('uid')."'><img src='".XOOPS_URL."/images/icons/profile.gif' alt='"._PROFILE."' /></a>";
329 329
             $pm_image      = '';
330 330
             if ($xoopsUser) {
331
-                $pm_image = "<a href='javascript:openWithSelfMain(\"" . XOOPS_URL . '/pmlite.php?send2=1&amp;to_userid=' . $poster->getVar('uid') . "\",\"pmlite\",565,500);'><img src='" . XOOPS_URL . "/images/icons/pm.gif' alt='" . sprintf(_SENDPMTO, $poster->getVar('uname', 'E')) . "' /></a>";
331
+                $pm_image = "<a href='javascript:openWithSelfMain(\"".XOOPS_URL.'/pmlite.php?send2=1&amp;to_userid='.$poster->getVar('uid')."\",\"pmlite\",565,500);'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->getVar('uname', 'E'))."' /></a>";
332 332
             }
333 333
             $email_image = '';
334 334
             if ($poster->getVar('user_viewemail')) {
335
-                $email_image = "<a href='mailto:" . $poster->getVar('email', 'E') . "'><img src='" . XOOPS_URL . "/images/icons/email.gif' alt='" . sprintf(_SENDEMAILTO, $poster->getVar('uname', 'E')) . "' /></a>";
335
+                $email_image = "<a href='mailto:".$poster->getVar('email', 'E')."'><img src='".XOOPS_URL."/images/icons/email.gif' alt='".sprintf(_SENDEMAILTO, $poster->getVar('uname', 'E'))."' /></a>";
336 336
             }
337 337
             $posterurl = $poster->getVar('url');
338 338
             $www_image = '';
339 339
             if ($posterurl != '') {
340
-                $www_image = "<a href='$posterurl' rel='external'><img src='" . XOOPS_URL . "/images/icons/www.gif' alt='" . _VISITWEBSITE . "' /></a>";
340
+                $www_image = "<a href='$posterurl' rel='external'><img src='".XOOPS_URL."/images/icons/www.gif' alt='"._VISITWEBSITE."' /></a>";
341 341
             }
342 342
             $icq_image = '';
343 343
             if ($poster->getVar('user_icq') != '') {
344
-                $icq_image = "<a href='http://wwp.icq.com/scripts/search.dll?to=" . $poster->getVar('user_icq', 'E') . "'><img src='" . XOOPS_URL . "/images/icons/icq_add.gif' alt='" . _ADD . "' /></a>";
344
+                $icq_image = "<a href='http://wwp.icq.com/scripts/search.dll?to=".$poster->getVar('user_icq', 'E')."'><img src='".XOOPS_URL."/images/icons/icq_add.gif' alt='"._ADD."' /></a>";
345 345
             }
346 346
             $aim_image = '';
347 347
             if ($poster->getVar('user_aim') != '') {
348
-                $aim_image = "<a href='aim:goim?screenname=" . $poster->getVar('user_aim', 'E') . '&message=Hi+' . $poster->getVar('user_aim') . "+Are+you+there?'><img src='" . XOOPS_URL . "/images/icons/aim.gif' alt='aim' /></a>";
348
+                $aim_image = "<a href='aim:goim?screenname=".$poster->getVar('user_aim', 'E').'&message=Hi+'.$poster->getVar('user_aim')."+Are+you+there?'><img src='".XOOPS_URL."/images/icons/aim.gif' alt='aim' /></a>";
349 349
             }
350 350
             $yim_image = '';
351 351
             if ($poster->getVar('user_yim') != '') {
352
-                $yim_image = "<a href='http://edit.yahoo.com/config/send_webmesg?.target=" . $poster->getVar('user_yim', 'E') . "&.src=pg'><img src='" . XOOPS_URL . "/images/icons/yim.gif' alt='yim' /></a>";
352
+                $yim_image = "<a href='http://edit.yahoo.com/config/send_webmesg?.target=".$poster->getVar('user_yim', 'E')."&.src=pg'><img src='".XOOPS_URL."/images/icons/yim.gif' alt='yim' /></a>";
353 353
             }
354 354
             $msnm_image = '';
355 355
             if ($poster->getVar('user_msnm') != '') {
356
-                $msnm_image = "<a href='" . XOOPS_URL . '/userinfo.php?uid=' . $poster->getVar('uid') . "'><img src='" . XOOPS_URL . "/images/icons/msnm.gif' alt='msnm' /></a>";
356
+                $msnm_image = "<a href='".XOOPS_URL.'/userinfo.php?uid='.$poster->getVar('uid')."'><img src='".XOOPS_URL."/images/icons/msnm.gif' alt='msnm' /></a>";
357 357
             }
358 358
             showThread($color_num, $subject_image, $this->getVar('subject'), $text, $post_date, $ip_image, $reply_image, $edit_image, $delete_image, $poster->getVar('uname'), $rank['title'], $rank['image'], $avatar_image, $reg_date, $posts, $user_from, $online_image, $profile_image, $pm_image, $email_image, $www_image, $icq_image, $aim_image, $yim_image, $msnm_image);
359 359
         } else {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
      */
378 378
     public function showTreeHead($width = '100%')
379 379
     {
380
-        echo "<table border='0' class='outer' cellpadding='0' cellspacing='0' align='center' width='$width'><tr class='bg3' align='center'><td colspan='3'>" . _CM_REPLIES . "</td></tr><tr class='bg3' align='left'><td width='60%' class='fg2'>" . _CM_TITLE . "</td><td width='20%' class='fg2'>" . _CM_POSTER . "</td><td class='fg2'>" . _CM_POSTED . '</td></tr>';
380
+        echo "<table border='0' class='outer' cellpadding='0' cellspacing='0' align='center' width='$width'><tr class='bg3' align='center'><td colspan='3'>"._CM_REPLIES."</td></tr><tr class='bg3' align='left'><td width='60%' class='fg2'>"._CM_TITLE."</td><td width='20%' class='fg2'>"._CM_POSTER."</td><td class='fg2'>"._CM_POSTED.'</td></tr>';
381 381
     }
382 382
 
383 383
     /**
@@ -397,9 +397,9 @@  discard block
 block discarded – undo
397 397
         $date   = formatTimestamp($this->getVar('date'), 'm');
398 398
         $icon   = 'icons/no_posticon.gif';
399 399
         if ($this->getVar('icon') != '') {
400
-            $icon = 'subject/' . $this->getVar('icon', 'E');
400
+            $icon = 'subject/'.$this->getVar('icon', 'E');
401 401
         }
402
-        echo "<tr class='$bg' align='left'><td>" . $prefix . "<img src='" . XOOPS_URL . '/images/' . $icon . "'>&nbsp;<a href='" . $_SERVER['PHP_SELF'] . '?item_id=' . $this->getVar('item_id') . '&amp;comment_id=' . $this->getVar('comment_id') . '&amp;mode=' . $mode . '&amp;order=' . $order . '#' . $this->getVar('comment_id') . "'>" . $this->getVar('subject') . "</a></td><td><a href='" . XOOPS_URL . '/userinfo.php?uid=' . $this->getVar('user_id') . "'>" . XoopsUser::getUnameFromId($this->getVar('user_id')) . '</a></td><td>' . $date . '</td></tr>';
402
+        echo "<tr class='$bg' align='left'><td>".$prefix."<img src='".XOOPS_URL.'/images/'.$icon."'>&nbsp;<a href='".$_SERVER['PHP_SELF'].'?item_id='.$this->getVar('item_id').'&amp;comment_id='.$this->getVar('comment_id').'&amp;mode='.$mode.'&amp;order='.$order.'#'.$this->getVar('comment_id')."'>".$this->getVar('subject')."</a></td><td><a href='".XOOPS_URL.'/userinfo.php?uid='.$this->getVar('user_id')."'>".XoopsUser::getUnameFromId($this->getVar('user_id')).'</a></td><td>'.$date.'</td></tr>';
403 403
     }
404 404
 
405 405
     /**
Please login to merge, or discard this patch.
htdocs/class/module.textsanitizer.php 1 patch
Spacing   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function __construct(MyTextSanitizer $ts)
40 40
     {
41 41
         $this->ts         = $ts;
42
-        $this->image_path = XOOPS_URL . '/images/form';
42
+        $this->image_path = XOOPS_URL.'/images/form';
43 43
     }
44 44
 
45 45
     /**
@@ -53,21 +53,21 @@  discard block
 block discarded – undo
53 53
         $ts   = MyTextSanitizer::getInstance();
54 54
         $path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
55 55
         if (false === strpos($path, '/')) {
56
-            if (is_dir($ts->path_basic . '/' . $path)) {
57
-                $path = $ts->path_basic . '/' . $path;
56
+            if (is_dir($ts->path_basic.'/'.$path)) {
57
+                $path = $ts->path_basic.'/'.$path;
58 58
             } else {
59
-                if (is_dir($ts->path_plugin . '/' . $path)) {
60
-                    $path = $ts->path_plugin . '/' . $path;
59
+                if (is_dir($ts->path_plugin.'/'.$path)) {
60
+                    $path = $ts->path_plugin.'/'.$path;
61 61
                 }
62 62
             }
63 63
         }
64 64
         $config_default = array();
65 65
         $config_custom  = array();
66
-        if (file_exists($path . '/config.php')) {
67
-            $config_default = include $path . '/config.php';
66
+        if (file_exists($path.'/config.php')) {
67
+            $config_default = include $path.'/config.php';
68 68
         }
69
-        if (file_exists($path . '/config.custom.php')) {
70
-            $config_custom = include $path . '/config.custom.php';
69
+        if (file_exists($path.'/config.custom.php')) {
70
+            $config_custom = include $path.'/config.custom.php';
71 71
         }
72 72
 
73 73
         return self::mergeConfig($config_default, $config_custom);
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
 
173 173
     public function __construct()
174 174
     {
175
-        $this->path_basic  = XOOPS_ROOT_PATH . '/class/textsanitizer';
176
-        $this->path_plugin = XOOPS_ROOT_PATH . '/Frameworks/textsanitizer';
175
+        $this->path_basic  = XOOPS_ROOT_PATH.'/class/textsanitizer';
176
+        $this->path_plugin = XOOPS_ROOT_PATH.'/Frameworks/textsanitizer';
177 177
         $this->config      = $this->loadConfig();
178 178
     }
179 179
 
@@ -188,9 +188,9 @@  discard block
 block discarded – undo
188 188
         if (!empty($name)) {
189 189
             return MyTextSanitizerExtension::loadConfig($name);
190 190
         }
191
-        $config_default = include $this->path_basic . '/config.php';
191
+        $config_default = include $this->path_basic.'/config.php';
192 192
         $config_custom  = array();
193
-        if (file_exists($file = $this->path_basic . '/config.custom.php')) {
193
+        if (file_exists($file = $this->path_basic.'/config.custom.php')) {
194 194
             $config_custom = include $file;
195 195
         }
196 196
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         if (count($this->smileys) == 0) {
249 249
             /* @var $xoopsDB XoopsMySQLDatabase */
250 250
             $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection();
251
-            if ($getsmiles = $xoopsDB->query('SELECT * FROM ' . $xoopsDB->prefix('smiles'))) {
251
+            if ($getsmiles = $xoopsDB->query('SELECT * FROM '.$xoopsDB->prefix('smiles'))) {
252 252
                 while (false !== ($smiles = $xoopsDB->fetchArray($getsmiles))) {
253 253
                     $this->smileys[] = $smiles;
254 254
                 }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     {
280 280
         $smileys = $this->getSmileys();
281 281
         foreach ($smileys as $smile) {
282
-            $message = str_replace($smile['code'], '<img class="imgsmile" src="' . XOOPS_UPLOAD_URL . '/' . htmlspecialchars($smile['smile_url']) . '" alt="" />', $message);
282
+            $message = str_replace($smile['code'], '<img class="imgsmile" src="'.XOOPS_UPLOAD_URL.'/'.htmlspecialchars($smile['smile_url']).'" alt="" />', $message);
283 283
         }
284 284
 
285 285
         return $message;
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      */
293 293
     public function makeClickableCallback01($match)
294 294
     {
295
-        return $match[1] . "<a href=\"$match[2]://$match[3]\" title=\"$match[2]://$match[3]\" rel=\"external\">$match[2]://" . $this->truncate($match[3]) . '</a>';
295
+        return $match[1]."<a href=\"$match[2]://$match[3]\" title=\"$match[2]://$match[3]\" rel=\"external\">$match[2]://".$this->truncate($match[3]).'</a>';
296 296
     }
297 297
 
298 298
     /**
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      */
303 303
     public function makeClickableCallback02($match)
304 304
     {
305
-        return $match[1] . "<a href=\"http://www.$match[2]$match[6]\" title=\"www.$match[2]$match[6]\" rel=\"external\">" . $this->truncate('www.' . $match[2] . $match[6]) . '</a>';
305
+        return $match[1]."<a href=\"http://www.$match[2]$match[6]\" title=\"www.$match[2]$match[6]\" rel=\"external\">".$this->truncate('www.'.$match[2].$match[6]).'</a>';
306 306
     }
307 307
 
308 308
     /**
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      */
313 313
     public function makeClickableCallback03($match)
314 314
     {
315
-        return $match[1] . "<a href=\"ftp://ftp.$match[2].$match[3]\" title=\"ftp.$match[2].$match[3]\" rel=\"external\">" . $this->truncate('ftp.' . $match[2] . $match[3]) . '</a>';
315
+        return $match[1]."<a href=\"ftp://ftp.$match[2].$match[3]\" title=\"ftp.$match[2].$match[3]\" rel=\"external\">".$this->truncate('ftp.'.$match[2].$match[3]).'</a>';
316 316
     }
317 317
 
318 318
     /**
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     public function makeClickableCallback04($match)
324 324
     {
325
-        return $match[1] . "<a href=\"mailto:$match[2]@$match[3]\" title=\"$match[2]@$match[3]\">" . $this->truncate($match[2] . '@' . $match[3]) . '</a>';
325
+        return $match[1]."<a href=\"mailto:$match[2]@$match[3]\" title=\"$match[2]@$match[3]\">".$this->truncate($match[2].'@'.$match[3]).'</a>';
326 326
     }
327 327
 
328 328
     /**
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
             return $text;
387 387
         }
388 388
         $len = floor($instance->config['truncate_length'] / 2);
389
-        $ret = substr($text, 0, $len) . ' ... ' . substr($text, 5 - $len);
389
+        $ret = substr($text, 0, $len).' ... '.substr($text, 5 - $len);
390 390
 
391 391
         return $ret;
392 392
     }
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
         $patterns       = array();
405 405
         $replacements   = array();
406 406
         $patterns[]     = "/\[siteurl=(['\"]?)([^\"'<>]*)\\1](.*)\[\/siteurl\]/sU";
407
-        $replacements[] = '<a href="' . XOOPS_URL . '/\\2" title="">\\3</a>';
407
+        $replacements[] = '<a href="'.XOOPS_URL.'/\\2" title="">\\3</a>';
408 408
         $patterns[]     = "/\[url=(['\"]?)(http[s]?:\/\/[^\"'<>]*)\\1](.*)\[\/url\]/sU";
409 409
         $replacements[] = '<a href="\\2" rel="external" title="">\\3</a>';
410 410
         $patterns[]     = "/\[url=(['\"]?)(ftp?:\/\/[^\"'<>]*)\\1](.*)\[\/url\]/sU";
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
     {
466 466
         //look for both open and closing tags in the correct order
467 467
         $pattern     = "/\[quote](.*)\[\/quote\]/sU";
468
-        $replacement = _QUOTEC . '<div class="xoopsQuote"><blockquote>\\1</blockquote></div>';
468
+        $replacement = _QUOTEC.'<div class="xoopsQuote"><blockquote>\\1</blockquote></div>';
469 469
 
470 470
         $text = preg_replace($pattern, $replacement, $text, -1, $count);
471 471
         //no more matches, return now
@@ -603,10 +603,10 @@  discard block
 block discarded – undo
603 603
             // decode xcode
604 604
             if ($image != 0) {
605 605
                 // image allowed
606
-                $text =& $this->xoopsCodeDecode($text);
606
+                $text = & $this->xoopsCodeDecode($text);
607 607
             } else {
608 608
                 // image not allowed
609
-                $text =& $this->xoopsCodeDecode($text, 0);
609
+                $text = & $this->xoopsCodeDecode($text, 0);
610 610
             }
611 611
         }
612 612
         if ($br != 0) {
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
     public function &previewTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1)
636 636
     {
637 637
         $text = $this->stripSlashesGPC($text);
638
-        $text =& $this->displayTarea($text, $html, $smiley, $xcode, $image, $br);
638
+        $text = & $this->displayTarea($text, $html, $smiley, $xcode, $image, $br);
639 639
 
640 640
         return $text;
641 641
     }
@@ -673,8 +673,8 @@  discard block
 block discarded – undo
673 673
             $patterns = "/\[code([^\]]*?)\](.*)\[\/code\]/sU";
674 674
             $text = preg_replace_callback(
675 675
                 $patterns,
676
-                function ($matches) {
677
-                    return '[code'. $matches[1] . ']' . base64_encode($matches[2]) . '[/code]';
676
+                function($matches) {
677
+                    return '[code'.$matches[1].']'.base64_encode($matches[2]).'[/code]';
678 678
                 },
679 679
                 $text
680 680
             );
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
      */
691 691
     public function codeConvCallback($match)
692 692
     {
693
-        return '<div class="xoopsCode">' . $this->executeExtension('syntaxhighlight', str_replace('\\\"', '\"', base64_decode($match[2])), $match[1]) . '</div>';
693
+        return '<div class="xoopsCode">'.$this->executeExtension('syntaxhighlight', str_replace('\\\"', '\"', base64_decode($match[2])), $match[1]).'</div>';
694 694
     }
695 695
 
696 696
     /**
@@ -736,14 +736,14 @@  discard block
 block discarded – undo
736 736
      */
737 737
     public function loadExtension($name)
738 738
     {
739
-        if (file_exists($file = $this->path_basic . '/' . $name . '/' . $name . '.php')) {
739
+        if (file_exists($file = $this->path_basic.'/'.$name.'/'.$name.'.php')) {
740 740
             include_once $file;
741
-        } elseif (file_exists($file = $this->path_plugin . '/' . $name . '/' . $name . '.php')) {
741
+        } elseif (file_exists($file = $this->path_plugin.'/'.$name.'/'.$name.'.php')) {
742 742
             include_once $file;
743 743
         } else {
744 744
             return false;
745 745
         }
746
-        $class = 'Myts' . ucfirst($name);
746
+        $class = 'Myts'.ucfirst($name);
747 747
         if (!class_exists($class)) {
748 748
             trigger_error("Extension '{$name}' does not exist", E_USER_WARNING);
749 749
 
@@ -804,9 +804,9 @@  discard block
 block discarded – undo
804 804
      */
805 805
     public function codeSanitizer($str, $image = 1)
806 806
     {
807
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
807
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
808 808
         $str = $this->htmlSpecialChars(str_replace('\"', '"', base64_decode($str)));
809
-        $str =& $this->xoopsCodeDecode($str, $image);
809
+        $str = & $this->xoopsCodeDecode($str, $image);
810 810
 
811 811
         return $str;
812 812
     }
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
      */
823 823
     public function sanitizeForDisplay($text, $allowhtml = 0, $smiley = 1, $bbcode = 1)
824 824
     {
825
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
825
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
826 826
         if ($allowhtml == 0) {
827 827
             $text = $this->htmlSpecialChars($text);
828 828
         } else {
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
             $text = $this->smiley($text);
836 836
         }
837 837
         if ($bbcode == 1) {
838
-            $text =& $this->xoopsCodeDecode($text);
838
+            $text = & $this->xoopsCodeDecode($text);
839 839
         }
840 840
         $text = $this->nl2Br($text);
841 841
 
@@ -853,7 +853,7 @@  discard block
 block discarded – undo
853 853
      */
854 854
     public function sanitizeForPreview($text, $allowhtml = 0, $smiley = 1, $bbcode = 1)
855 855
     {
856
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
856
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
857 857
         $text = $this->oopsStripSlashesGPC($text);
858 858
         if ($allowhtml == 0) {
859 859
             $text = $this->htmlSpecialChars($text);
@@ -867,7 +867,7 @@  discard block
 block discarded – undo
867 867
             $text = $this->smiley($text);
868 868
         }
869 869
         if ($bbcode == 1) {
870
-            $text =& $this->xoopsCodeDecode($text);
870
+            $text = & $this->xoopsCodeDecode($text);
871 871
         }
872 872
         $text = $this->nl2Br($text);
873 873
 
@@ -882,7 +882,7 @@  discard block
 block discarded – undo
882 882
      */
883 883
     public function makeTboxData4Save($text)
884 884
     {
885
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
885
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
886 886
 
887 887
         // $text = $this->undoHtmlSpecialChars($text);
888 888
         return $this->addSlashes($text);
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
      */
898 898
     public function makeTboxData4Show($text, $smiley = 0)
899 899
     {
900
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
900
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
901 901
         $text = $this->htmlSpecialChars($text);
902 902
 
903 903
         return $text;
@@ -911,7 +911,7 @@  discard block
 block discarded – undo
911 911
      */
912 912
     public function makeTboxData4Edit($text)
913 913
     {
914
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
914
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
915 915
 
916 916
         return $this->htmlSpecialChars($text);
917 917
     }
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
      */
926 926
     public function makeTboxData4Preview($text, $smiley = 0)
927 927
     {
928
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
928
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
929 929
         $text = $this->stripSlashesGPC($text);
930 930
         $text = $this->htmlSpecialChars($text);
931 931
 
@@ -940,7 +940,7 @@  discard block
 block discarded – undo
940 940
      */
941 941
     public function makeTboxData4PreviewInForm($text)
942 942
     {
943
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
943
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
944 944
         $text = $this->stripSlashesGPC($text);
945 945
 
946 946
         return $this->htmlSpecialChars($text);
@@ -954,7 +954,7 @@  discard block
 block discarded – undo
954 954
      */
955 955
     public function makeTareaData4Save($text)
956 956
     {
957
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
957
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
958 958
 
959 959
         return $this->addSlashes($text);
960 960
     }
@@ -970,8 +970,8 @@  discard block
 block discarded – undo
970 970
      */
971 971
     public function &makeTareaData4Show(&$text, $html = 1, $smiley = 1, $xcode = 1)
972 972
     {
973
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
974
-        $text =& $this->displayTarea($text, $html, $smiley, $xcode);
973
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
974
+        $text = & $this->displayTarea($text, $html, $smiley, $xcode);
975 975
 
976 976
         return $text;
977 977
     }
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
      */
985 985
     public function makeTareaData4Edit($text)
986 986
     {
987
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
987
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
988 988
 
989 989
         return $this->htmlSpecialChars($text);
990 990
     }
@@ -1000,8 +1000,8 @@  discard block
 block discarded – undo
1000 1000
      */
1001 1001
     public function &makeTareaData4Preview(&$text, $html = 1, $smiley = 1, $xcode = 1)
1002 1002
     {
1003
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
1004
-        $text =& $this->previewTarea($text, $html, $smiley, $xcode);
1003
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
1004
+        $text = & $this->previewTarea($text, $html, $smiley, $xcode);
1005 1005
 
1006 1006
         return $text;
1007 1007
     }
@@ -1014,7 +1014,7 @@  discard block
 block discarded – undo
1014 1014
      */
1015 1015
     public function makeTareaData4PreviewInForm($text)
1016 1016
     {
1017
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
1017
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
1018 1018
         // if magic_quotes_gpc is on, do stipslashes
1019 1019
         $text = $this->stripSlashesGPC($text);
1020 1020
 
@@ -1029,7 +1029,7 @@  discard block
 block discarded – undo
1029 1029
      */
1030 1030
     public function makeTareaData4InsideQuotes($text)
1031 1031
     {
1032
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
1032
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
1033 1033
 
1034 1034
         return $this->htmlSpecialChars($text);
1035 1035
     }
@@ -1042,7 +1042,7 @@  discard block
 block discarded – undo
1042 1042
      */
1043 1043
     public function oopsStripSlashesGPC($text)
1044 1044
     {
1045
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
1045
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
1046 1046
 
1047 1047
         return $this->stripSlashesGPC($text);
1048 1048
     }
@@ -1055,7 +1055,7 @@  discard block
 block discarded – undo
1055 1055
      */
1056 1056
     public function oopsStripSlashesRT($text)
1057 1057
     {
1058
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
1058
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
1059 1059
         if (get_magic_quotes_runtime()) {
1060 1060
             $text = stripslashes($text);
1061 1061
         }
@@ -1071,7 +1071,7 @@  discard block
 block discarded – undo
1071 1071
      */
1072 1072
     public function oopsAddSlashes($text)
1073 1073
     {
1074
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
1074
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
1075 1075
 
1076 1076
         return $this->addSlashes($text);
1077 1077
     }
@@ -1084,7 +1084,7 @@  discard block
 block discarded – undo
1084 1084
      */
1085 1085
     public function oopsHtmlSpecialChars($text)
1086 1086
     {
1087
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
1087
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
1088 1088
 
1089 1089
         return $this->htmlSpecialChars($text);
1090 1090
     }
@@ -1097,7 +1097,7 @@  discard block
 block discarded – undo
1097 1097
      */
1098 1098
     public function oopsNl2Br($text)
1099 1099
     {
1100
-        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
1100
+        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.' is deprecated');
1101 1101
 
1102 1102
         return $this->nl2Br($text);
1103 1103
     }
Please login to merge, or discard this patch.
htdocs/class/logger_render.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,4 +29,4 @@
 block discarded – undo
29 29
  * Load the new XoopsLogger class
30 30
  **/
31 31
 include_once $GLOBALS['xoops']->path('class/logger/render.php');
32
-trigger_error('Instance of ' . __FILE__ . ' file is deprecated, check in class/logger/render.php');
32
+trigger_error('Instance of '.__FILE__.' file is deprecated, check in class/logger/render.php');
Please login to merge, or discard this patch.