Moodle
  1. Moodle
  2. MDL-24263

static methods should not care about $this

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Portfolio
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      private static function get_mnet_hosts() {
      global $DB, $CFG;
      static $hosts;
      if (isset($this) && is_object($this) && isset($this->hosts)) {

      from portfolio/mahara/lib.php

        Gliffy Diagrams

          Activity

          Petr Skoda created issue -
          Penny Leach made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.0 [ 10122 ]
          Resolution Fixed [ 1 ]
          Martin Dougiamas made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          QA Assignee nobody
          Martin Dougiamas made changes -
          Workflow jira [ 38745 ] MDL Workflow [ 65587 ]
          Martin Dougiamas made changes -
          Workflow MDL Workflow [ 65587 ] MDL Full Workflow [ 94927 ]

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: