Skip to content

Commit

Permalink
allow defining setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheu committed Jul 7, 2015
1 parent 734506e commit b35969d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-mexp-resource-space-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function request( array $request ) {
'previewsize' => 'pre',
'prettyfieldnames' => true,
'original' => true,
'results_per_page' => 20,
'results_per_page' => PJ_RESOURCE_SPACE_RESULTS_PER_PAGE,
'page' => absint( $request['page'] ),
'restypes' => 1, // Restrict to images only.
) ),
Expand Down
1 change: 1 addition & 0 deletions resourcespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
define( 'RESOURCE_SPACE_AJAX_ACTION', 'pj_rs_get_resource' );
define( 'RESOURCE_SPACE_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'RESOURCE_SPACE_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
defined( 'PJ_RESOURCE_SPACE_RESULTS_PER_PAGE' ) or define( 'PJ_RESOURCE_SPACE_RESULTS_PER_PAGE', 20 );

if ( ! class_exists( 'MEXP_Service' ) ) {
wp_die( __( 'Media Explorer plugin must be enabled.', 'resourcespace' ) );
Expand Down

0 comments on commit b35969d

Please sign in to comment.