WordPress.org

Plugin Directory

Changeset 228086


Ignore:
Timestamp:
04/12/10 19:20:22 (4 years ago)
Author:
MrWiblog
Message:

0.8.2 (2010/04/12) Stopped failure of chmod() on custom templates directory causing warnings

Location:
voucherpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • voucherpress/trunk/readme.txt

    r224619 r228086  
    55Requires at least: 2.8 
    66Tested up to: 2.9.2 
    7 Stable tag: 0.8.1 
     7Stable tag: 0.8.2 
    88 
    99VoucherPress is a Wordpress plugin that allows you to give downloadable, printable vouchers/tickets/coupons/tokens in PDF format away on your site. 
     
    6565== Changelog == 
    6666 
     670.8.2 (2010/04/12) Stopped failure of chmod() on custom templates directory causing warnings 
    67680.8.1 (2010/04/01) Added voucher code to the CSV download. Added Plugin Register code. 
    68690.8 (2010/03/23) Made activation even more robust. Changed expiry to separate year/month/day fields. Prepared for own voucher codes. 
  • voucherpress/trunk/voucherpress.php

    r224619 r228086  
    33 * @package VoucherPress 
    44 * @author Chris Taylor 
    5  * @version 0.8.1 
     5 * @version 0.8.2 
    66 */ 
    77/* 
     
    1010Description: VoucherPress allows you to offer downloadable, printable vouchers from your Wordpress site. Vouchers can be available to anyone, or require a name and email address before they can be downloaded. Please note: On activation this plugin will send a message to the developer with your site name and URL. This information will be kept private. If you are not happy with the developer knowing you are using their plugin, please do not use it. 
    1111Author: Chris Taylor 
    12 Version: 0.8.1 
     12Version: 0.8.2 
    1313Author URI: http://www.stillbreathing.co.uk/ 
    1414*/ 
     
    1616// set the current version 
    1717function voucherpress_current_version() { 
    18     return "0.8.1"; 
     18    return "0.8.2"; 
    1919} 
    2020 
     
    228228    } 
    229229    // chmod the templates directory 
    230     chmod( ABSPATH . "/wp-content/plugins/voucherpress/templates/", 0767 ); 
     230    if ( !@chmod( ABSPATH . "/wp-content/plugins/voucherpress/templates/", 0767 ) ) { 
     231        echo ' 
     232        <div id="message" class="warning"> 
     233            <p><strong>' . __( "The system was not able to set the right permissions on the folder where your custom templates are stored. You may not be able to upload your own templates. Please contact your system administrator for more information.", "voucherpress" ) . '</strong></p> 
     234        </div> 
     235        '; 
     236    } 
    231237} 
    232238 
Note: See TracChangeset for help on using the changeset viewer.