Changeset 7114
- Timestamp:
- 08/10/2020 07:41:45 PM (3 years ago)
- Location:
- branches/0.9/bb-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/bb-includes/classes.php
r6171 r7114 1000 1000 if ( in_array($this->_current_file, array('.', '..')) ) 1001 1001 continue; 1002 if ( !$this->dots && '.' == $this->_current_file {0})1002 if ( !$this->dots && '.' == $this->_current_file[0] ) 1003 1003 continue; 1004 1004 -
branches/0.9/bb-includes/db.php
r1894 r7114 1 1 <?php 2 define('OBJECT', 'OBJECT' , true);3 define('ARRAY_A', 'ARRAY_A' , false);4 define('ARRAY_N', 'ARRAY_N' , false);2 define('OBJECT', 'OBJECT'); 3 define('ARRAY_A', 'ARRAY_A'); 4 define('ARRAY_N', 'ARRAY_N'); 5 5 6 6 if ( !defined('SAVEQUERIES') ) -
branches/0.9/bb-includes/functions.php
r6160 r7114 47 47 reset($_leaves); 48 48 49 while ( list($l, $leaf) = each($_leaves)) {49 foreach ( $_leaves as $l => $leaf ) { 50 50 if ( $root == $leaf->forum_parent ) { 51 51 $new_root = (int) $leaf->forum_id; 52 52 unset($_leaves[$l]); 53 53 $branch[$new_root] = 1 == $depth ? true : bb_get_forums_hierarchical( $new_root, $depth - 1, false, true ); 54 reset($_leaves);55 54 } 56 55 } … … 2427 2426 if (strpos($file, '#') !== false) 2428 2427 return $file; // It's already a basename 2429 foreach ($directories as $type => $directory) 2428 foreach ($directories as $type => $directory) { 2430 2429 if (strpos($file, $directory) !== false) 2431 2430 break; // Keep the $file and $directory set and use them below, nifty huh? 2431 } 2432 2432 $file = str_replace('\\','/',$file); 2433 2433 $file = preg_replace('|/+|','/', $file); … … 2497 2497 if ( $themes_dir = @dir($theme_root) ) 2498 2498 while( ( $theme_dir = $themes_dir->read() ) !== false ) 2499 if ( is_dir($theme_root . $theme_dir) && is_readable($theme_root . $theme_dir) && '.' != $theme_dir {0})2499 if ( is_dir($theme_root . $theme_dir) && is_readable($theme_root . $theme_dir) && '.' != $theme_dir[0] ) 2500 2500 $r[$theme_root_name . '#' . $theme_dir] = $theme_root_name . '#' . $theme_dir; 2501 2501 ksort($r);
Note: See TracChangeset
for help on using the changeset viewer.