Plugin Directory

Changeset 610099


Ignore:
Timestamp:
10/09/2012 05:55:15 PM (13 years ago)
Author:
shauno
Message:

new version 2.0.1, replacing a use of the DIR super global, as its only available from php 5.3. using dirname(FILE) instead

Location:
nextgen-gallery-voting
Files:
14 added
2 edited

Legend:

Unmodified
Added
Removed
  • nextgen-gallery-voting/trunk/ngg-voting.php

    r608674 r610099  
    44Plugin URI: http://shauno.co.za/wordpress-nextgen-gallery-voting/
    55Description: This plugin allows users to add user voting to NextGEN Gallery Images
    6 Version: 2.0
     6Version: 2.0.1
    77Author: Shaun Alberts
    88Author URI: http://shauno.co.za
     
    4747       
    4848        $this->adminUrl = get_bloginfo('url').'/wp-admin/admin.php?page='; //not sure this is ideal? TODO, research better way of getting pre-slug admin page URL
     49        //use of dirname(__FILE__) as __DIR__ is only available from 5.3
    4950        $this->slug = basename(dirname(__FILE__));
    5051       
    51         $dir = array_pop(explode('/', str_replace('\\', '/', __DIR__)));
     52        $dir = array_pop(explode('/', str_replace('\\', '/', dirname(__FILE__))));
    5253        $this->pluginUrl = trailingslashit(WP_PLUGIN_URL.'/'.$dir);
    53         $this->pluginPath = trailingslashit(str_replace('\\', '/', __DIR__));
     54        $this->pluginPath = trailingslashit(str_replace('\\', '/', dirname(__FILE__)));
    5455       
    5556        //general hooks - admin
  • nextgen-gallery-voting/trunk/readme.txt

    r608674 r610099  
    55Requires at least: 2.9.1
    66Tested up to: 3.4.2
    7 Stable tag: 2.0
     7Stable tag: 2.0.1
    88
    99This plugin adds the ability for users to vote on NextGEN Galleries and Images. A few basic options give the ability to limit who can vote on what.
     
    4747
    4848== Changelog ==
     49
     50= 2.0.1 =
     51* Changed a reference of `__DIR__` to `dirname(__FILE__)`, as I didn't realise `__DIR__` isn't available until PHP 5.3.
    4952
    5053= 2.0 =
Note: See TracChangeset for help on using the changeset viewer.