Plugin Directory

Changeset 518855


Ignore:
Timestamp:
03/14/2012 10:36:49 AM (14 years ago)
Author:
ihacklog
Message:

removed some un-needed comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hacklog-remote-image-autosave/trunk/util.class.php

    r517438 r518855  
    111111   
    112112    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          */
    118113        $content = preg_replace_callback ( "/<a[^>]*?href=('|\"|)?([^'\"]+)(\\1)[^>]*?>\s*<img[^>]*?src=('|\"|)?([^'\"]+)(\\4)[^>]*?>\s*<\/a>/is", 'hacklog_ria_util::link_img_tag_callback', $content );
    119114        return $content;
     
    122117    static function get_images($content) {
    123118        $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          */
    129119        $content = preg_replace_callback ( "/<img[^>]*?src=('|\"|)?([^'\"]+)(\\1)[^>]*?>/is", 'hacklog_ria_util::img_tag_callback', $content );
    130120        return $content;
Note: See TracChangeset for help on using the changeset viewer.