Plugin Directory

Changeset 1015302


Ignore:
Timestamp:
10/28/2014 02:07:28 PM (11 years ago)
Author:
marisp
Message:

fixed import of zipped templates

Location:
wpnewsman-newsletters/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wpnewsman-newsletters/trunk/ajaxbackend.php

    r1015230 r1015302  
    14791479            $installed = 0;
    14801480
    1481             $url = 'http://blog.dev/wp-admin/admin.php?page=newsman-templates'; //temporary
    1482             $method = 'GET';
    1483 
    14841481            $files = $this->getUploadedFiles('template', true);
    14851482            if ( $files ) {
  • wpnewsman-newsletters/trunk/class.utils.php

    r1015230 r1015302  
    10711071        $tpl->name = $templateName;
    10721072        $tpl->subject = __('Enter Subject Here', NEWSMAN);
    1073         $tpl->html = $this->processAssetsURLs($this->file_get_contents_utf8($fileName), $templateURL);
    1074 
    1075         if ( file_exists($particlesFileName) ) {
     1073        if ( @file_exists($fileName) ) {
     1074            $tpl->html = $this->processAssetsURLs($this->file_get_contents_utf8($fileName), $templateURL); 
     1075        }       
     1076
     1077        if ( @file_exists($particlesFileName) ) {
    10761078            $tpl->particles = $this->processAssetsURLs($this->file_get_contents_utf8($particlesFileName), $templateURL);
    10771079        } else {
Note: See TracChangeset for help on using the changeset viewer.