Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-31023 Libraries: removed legacypageobject usage

  • Loading branch information...
commit 11ad98ff0c1aac50bde552221adba0ff91d9967a 1 parent afb92f1
Rajesh Taneja rajeshtaneja authored

Showing 1 changed file with 0 additions and 14 deletions. Show diff stats Hide diff stats

  1. +0 14 lib/pagelib.php
14 lib/pagelib.php
@@ -313,14 +313,6 @@ class moodle_page {
313 313 protected $_periodicrefreshdelay = null;
314 314
315 315 /**
316   - * @var stdClass This is simply to improve backwards compatibility. If old
317   - * code relies on a page class that implements print_header, or complex logic
318   - * in user_allowed_editing then we stash an instance of that other class here,
319   - * and delegate to it in certain situations.
320   - */
321   - protected $_legacypageobject = null;
322   -
323   - /**
324 316 * @var array Associative array of browser shortnames (as used by check_browser_version)
325 317 * and their minimum required versions
326 318 */
@@ -792,9 +784,6 @@ public function user_can_edit_blocks() {
792 784 * @return bool
793 785 */
794 786 public function user_allowed_editing() {
795   - if ($this->_legacypageobject) {
796   - return $this->_legacypageobject->user_allowed_editing();
797   - }
798 787 return has_any_capability($this->all_editing_caps(), $this->_context);
799 788 }
800 789
@@ -1158,9 +1147,6 @@ public function set_url($url, array $params = null) {
1158 1147 if (is_null($this->_pagetype)) {
1159 1148 $this->initialise_default_pagetype($shorturl);
1160 1149 }
1161   - if (!is_null($this->_legacypageobject)) {
1162   - $this->_legacypageobject->set_url($url, $params);
1163   - }
1164 1150 }
1165 1151
1166 1152 /**

0 comments on commit 11ad98f

Please sign in to comment.
Something went wrong with that request. Please try again.