|
@@ 125-133 (lines=9) @@
|
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
|
| 125 |
|
public function removedefaultpageratings() |
| 126 |
|
{ |
| 127 |
|
if (Permission::check("ADMIN")) { |
| 128 |
|
DB::query("DELETE FROM PageRating WHERE IsDefault = 1;"); |
| 129 |
|
debug::show("removed all default ratings for all pages"); |
| 130 |
|
} else { |
| 131 |
|
Security::permissionFailure($this->owner, _t('Security.PERMFAILURE', ' This page is secured and you need administrator rights to access it. Enter your credentials below and we will send you right along.')); |
| 132 |
|
} |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
public function removeallpageratings() |
| 136 |
|
{ |
|
@@ 135-143 (lines=9) @@
|
| 132 |
|
} |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
public function removeallpageratings() |
| 136 |
|
{ |
| 137 |
|
if (Permission::check("ADMIN")) { |
| 138 |
|
DB::query("DELETE FROM PageRating;"); |
| 139 |
|
debug::show("removed all ratings for all pages"); |
| 140 |
|
} else { |
| 141 |
|
Security::permissionFailure($this->owner, _t('Security.PERMFAILURE', ' This page is secured and you need administrator rights to access it. Enter your credentials below and we will send you right along.')); |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
|
| 146 |
|
|