Skip to content

Commit 7a7712a

Browse files
committed
1 parent 36d075d commit 7a7712a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Mage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public static function register($key, $value, $graceful = false)
151151
if ($graceful) {
152152
return;
153153
}
154-
self::throwException('Mage registry key "' . $key . '" already exists');
154+
self::throwException("Mage registry key $key already exists");
155155
}
156156
self::$_registry[$key] = $value;
157157
}
@@ -204,7 +204,7 @@ public static function setRoot($appRoot = '')
204204
if (is_dir($appRoot) && is_readable($appRoot)) {
205205
self::$_appRoot = $appRoot;
206206
} else {
207-
self::throwException($appRoot . ' is not a directory or not readable by this user');
207+
self::throwException("$appRoot is not a directory or not readable by this user");
208208
}
209209
}
210210

0 commit comments

Comments
 (0)