Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9034 Fixes for many strict PHP warnings.
  3. CRM-9543

CRM_Core_Page_Basic() should be compatible with CRM_Core_Page()

    Details

    • Type: Sub-task
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The run() and browse() methods of CRM_Core_Page_Basic declare arguments that are neither present in the parent class nor in child classes. This generates a PHP warning every time the code of a child class is loaded.

      The attached patch removes the arguments from the function signature and instead use func_num_arg() and func_get_arg() to load them.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              pillarsdotnet Bob Vincent
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: