WordPress.org

GlotPress

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#201 closed defect (fixed)

GlotPress files should always be included as absolute paths

Reported by: mdawaffe Owned by: somebody
Milestone: Priority: normal
Version: Component: general
Keywords: Cc:

Description

Things like the following can make it difficult to create command line scripts with GlotPress.

require_once 'makepot.php'

When including/requiring files, they should always be referenced by absolute path.

require_once dirname( __FILE__ ) . '/makepot.php'

Attached.

Attachments (1)

gp-201.diff (1.7 KB) - added by mdawaffe 2 years ago.

Download all attachments as: .zip

Change History (4)

mdawaffe2 years ago

comment:1 nacin2 years ago

Looks good. I imagine this is a patch for http://i18n.svn.wordpress.org/tools? I don't see a copy of these files in either BackPress or GlotPress.

comment:2 nacin2 years ago

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 mdawaffe2 years ago

Thanks. Sorry, didn't realize I was in an external.

Note: See TracTickets for help on using tickets.