Changeset 7110
- Timestamp:
- 08/03/2020 01:20:09 PM (4 years ago)
- Location:
- branches/1.1
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bb-admin/export.php
r2425 r7110 46 46 $data .= str_repeat("\t", $tabs + 1) . "<meta key='$mk'><![CDATA[$mv]]></meta>\n"; 47 47 } else { 48 if ( '!' == $k {0}) {48 if ( '!' == $k[0] ) { 49 49 $k = substr($k, 1); 50 50 $v = "<![CDATA[$v]]>"; … … 66 66 $r = array(); 67 67 foreach ( $translate as $prop => $export ) { 68 if ( '?' == $export {0}) {68 if ( '?' == $export[0] ) { 69 69 $export = substr($export, 1); 70 70 if ( !$data[$prop] ) { -
branches/1.1/bb-includes/class.bb-dir-map.php
r6153 r7110 74 74 if ( in_array($this->_current_file, array('.', '..')) ) 75 75 continue; 76 if ( !$this->dots && '.' == $this->_current_file {0})76 if ( !$this->dots && '.' == $this->_current_file[0] ) 77 77 continue; 78 78 -
branches/1.1/bb-includes/functions.bb-core.php
r6825 r7110 1432 1432 if ( $themes_dir = @dir( $_data['dir'] ) ) { 1433 1433 while( ( $theme_dir = $themes_dir->read() ) !== false ) { 1434 if ( is_file( $_data['dir'] . $theme_dir . '/style.css' ) && is_readable( $_data['dir'] . $theme_dir . '/style.css' ) && '.' != $theme_dir {0}) {1434 if ( is_file( $_data['dir'] . $theme_dir . '/style.css' ) && is_readable( $_data['dir'] . $theme_dir . '/style.css' ) && '.' != $theme_dir[0] ) { 1435 1435 $r[$_name . '#' . $theme_dir] = $_name . '#' . $theme_dir; 1436 1436 } -
branches/1.1/bb-includes/functions.bb-deprecated.php
r6208 r7110 552 552 function bb_convert_path_base( $path, $from_base, $to_base ) { 553 553 bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 554 $last_char = $path {strlen($path)-1};554 $last_char = $path[strlen($path)-1]; 555 555 if ( '/' != $last_char && '\\' != $last_char ) 556 556 $last_char = ''; -
branches/1.1/bb-includes/functions.bb-template.php
r6156 r7110 3258 3258 3259 3259 foreach ( (array) $tags as $tag ) { 3260 $counts {$tag->raw_tag}= $tag->tag_count;3261 $taglinks {$tag->raw_tag}= bb_get_tag_link( $tag );3260 $counts[$tag->raw_tag] = $tag->tag_count; 3261 $taglinks[$tag->raw_tag] = bb_get_tag_link( $tag ); 3262 3262 } 3263 3263 … … 3276 3276 3277 3277 foreach ( $counts as $tag => $count ) { 3278 $taglink = esc_attr($taglinks {$tag});3278 $taglink = esc_attr($taglinks[$tag]); 3279 3279 $tag = str_replace(' ', ' ', esc_html( $tag )); 3280 3280 $fontsize = round( $smallest + ( ( $count - $min_count ) * $fontstep ), 1 ); -
branches/1.1/topic.php
r2147 r7110 15 15 16 16 if ( $view_deleted ) { 17 add_filter('get_thread_where', create_function('', 'return "p.topic_id = ' . $topic_id . '";'));18 add_filter('get_thread_post_ids', create_function('', 'return "p.topic_id = ' . $topic_id . '";'));17 add_filter('get_thread_where', function() use ($topic_id) { return "p.topic_id = " . intval( $topic_id ); }); 18 add_filter('get_thread_post_ids', function() use ($topic_id) { return "p.topic_id = " . intval( $topic_id ); }); 19 19 add_filter('post_edit_uri', 'bb_make_link_view_all'); 20 20 }
Note: See TracChangeset
for help on using the changeset viewer.