Changeset 137
- Timestamp:
- 12/24/07 21:08:51 (5 years ago)
- Files:
-
- 1 modified
-
trackback/files/lib/util/TrackbackUtil.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trackback/files/lib/util/TrackbackUtil.class.php
r136 r137 12 12 */ 13 13 class TrackbackUtil { 14 protected $agent = 'Woltlab Burning Board Trackback Mod'; 14 protected static $agent = 'Woltlab Burning Board Trackback Mod'; 15 protected static $timeout_bytes = 51200; 15 16 16 17 /** … … 127 128 // merge pingbacks with public pingback services 128 129 $pingbacks = array_merge($pingbacks, explode("\n", StringUtil::unifyNewlines(MESSAGE_PINGBACK))); 129 130 $pingbacks = array_filter($pingbacks, create_function('$a','return !empty($a);')); 131 130 132 // send pingbacks 131 133 foreach($pingbacks as $pingbackurl) { … … 243 245 } 244 246 $byte_count += strlen($line); 245 if ( $byte_count > $timeout_bytes ) {247 if ( $byte_count > self::$timeout_bytes ) { 246 248 // It's no use going further, there probably isn't any pingback 247 249 // server to find in this file. (Prevents loading large files.)
