Plugin Directory

Changeset 750372


Ignore:
Timestamp:
08/03/2013 12:45:58 AM (13 years ago)
Author:
marcelioleal
Message:

fix problem with page url

File:
1 edited

Legend:

Unmodified
Added
Removed
  • siteapps/trunk/classes/SiteAppsAdmin.php

    r750363 r750372  
    8585    public function widgetStyles()
    8686    {
    87         if (strstr($_SERVER['REQUEST_URI'], 'options-general.php?page=siteapps')) {
     87        if (strstr($_SERVER['REQUEST_URI'], 'options-general.php?page=siteapps')
     88                ||
     89            strstr($_SERVER['REQUEST_URI'], 'admin.php?page=siteapps')    ) {
    8890            wp_enqueue_style(SITEAPPS_PLUGIN_NAME . '_style_admin');
    8991        }
     
    154156                        __( 'SiteApps', SITEAPPS_PLUGIN_NAME),
    155157                            'manage_options',
    156                             'siteapps_dashboard',
     158                            'siteapps',
    157159                            array( $this, 'page' ),
    158160                            plugins_url(SITEAPPS_PLUGIN_NAME) . '/images/siteapps-icon.png',
     
    227229    private function checkDependencies()
    228230    {
    229         if (strstr($_SERVER['REQUEST_URI'], 'options-general.php?page=siteapps')) {
     231        if (strstr($_SERVER['REQUEST_URI'], 'options-general.php?page=siteapps')
     232                ||
     233            strstr($_SERVER['REQUEST_URI'], 'admin.php?page=siteapps')) {
    230234            if (!$this->checkCurlIsLoaded()) {
    231235                add_action('admin_head', array($this, 'printCurlNotLoaded'));
Note: See TracChangeset for help on using the changeset viewer.