Changeset 518855
- Timestamp:
- 03/14/2012 10:36:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hacklog-remote-image-autosave/trunk/util.class.php
r517438 r518855 111 111 112 112 static function get_link_images($content) { 113 /*114 * $content =115 * preg_replace_callback("/(\s*)<a[^>]*?href=('|\"|)?([^'\"]*)(\\1)[^>]*?>\s*<img[^>]*?src=('|\"|)?([^'\"]*?)(\\4)[^>]*?>\s*<\/a>(\s*)/is",116 * 'hacklog_ria_util::link_img_tag_callback', $content);117 */118 113 $content = preg_replace_callback ( "/<a[^>]*?href=('|\"|)?([^'\"]+)(\\1)[^>]*?>\s*<img[^>]*?src=('|\"|)?([^'\"]+)(\\4)[^>]*?>\s*<\/a>/is", 'hacklog_ria_util::link_img_tag_callback', $content ); 119 114 return $content; … … 122 117 static function get_images($content) { 123 118 $content = self::get_link_images ( $content ); 124 /*125 * $content =126 * preg_replace_callback("/(\s*)<img[^>]*?src=('|\"|)?([^'\"]*?)(\\1)[^>]*?>(\s*)/is",127 * 'hacklog_ria_util::img_tag_callback', $content);128 */129 119 $content = preg_replace_callback ( "/<img[^>]*?src=('|\"|)?([^'\"]+)(\\1)[^>]*?>/is", 'hacklog_ria_util::img_tag_callback', $content ); 130 120 return $content;
Note: See TracChangeset
for help on using the changeset viewer.